includes/dbal.php
changeset 953 323c4cd1aa37
parent 940 645727469415
child 973 451141c834fe
--- a/includes/dbal.php	Mon May 04 23:07:00 2009 -0400
+++ b/includes/dbal.php	Tue May 05 00:10:26 2009 -0400
@@ -427,10 +427,24 @@
   }
   
   function fetchrow($r = false) {
-    if(!$this->_conn) return false;
-    if(!$r) $r = $this->latest_result;
-    if(!$r) $this->_die('$db->fetchrow(): an invalid MySQL resource was passed.');
+    if ( !$this->_conn )
+      return false;
+    
+    if ( !$r )
+      $r = $this->latest_result;
+    
+    if ( !$r )
+      $this->_die('$db->fetchrow(): an invalid MySQL resource was passed.');
+    
     $row = mysql_fetch_assoc($r);
+    /*
+    if ( empty($row) )
+    {
+      $GLOBALS['do_gzip'] = false;
+      echo '<pre>' . enano_debug_print_backtrace(true) . '</pre>';
+    }
+    */
+    
     return integerize_array($row);
   }