couple of issues w/ profile photo update propogation

This commit is contained in:
Friendika 2010-11-09 18:24:35 -08:00
parent 70bcf000e3
commit f4fd679928
7 changed files with 70 additions and 50 deletions

View file

@ -37,7 +37,7 @@ class dba {
$mesg = '';
if($this->db->errno)
$debug_text .= $this->db->error . EOL;
logger('dba: ' . $this->db->error);
if($result === false)
$mesg = 'false';
@ -48,14 +48,7 @@ class dba {
$str = 'SQL = ' . printable($sql) . EOL . 'SQL returned ' . $mesg . EOL;
switch($this->debug) {
case 3:
echo $str;
break;
default:
$debug_text .= $str;
break;
}
logger('dba: ' . $str );
}
else {
if($result === false) {
@ -75,11 +68,8 @@ class dba {
$result->free_result();
}
if($this->debug == 2)
$debug_text .= printable(print_r($r, true). EOL);
elseif($this->debug == 3)
echo printable(print_r($r, true) . EOL) ;
if($this->debug)
logger('dba: ' . printable(print_r($r, true)), LOGGER_DATA);
return($r);
}