From f4fd67992812c5c356ff51e875077921a2222d90 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 9 Nov 2010 18:24:35 -0800 Subject: couple of issues w/ profile photo update propogation --- include/dba.php | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'include/dba.php') diff --git a/include/dba.php b/include/dba.php index 54084d835..4e3f11f7b 100644 --- a/include/dba.php +++ b/include/dba.php @@ -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); } -- cgit v1.2.3