[minor] silenced errors to mysql_free_result() and pg_free_result()
authorDan
Thu, 24 Jan 2008 22:10:00 -0500
changeset 374 5c740e430a05
parent 373 5c6e09bc7d69
child 375 8d0e3a5a6990
[minor] silenced errors to mysql_free_result() and pg_free_result()
includes/dbal.php
--- a/includes/dbal.php	Thu Jan 24 22:08:51 2008 -0500
+++ b/includes/dbal.php	Thu Jan 24 22:10:00 2008 -0500
@@ -462,7 +462,7 @@
       $this->disable_errorhandler();
       return null;
     }
-    mysql_free_result($result);
+    @mysql_free_result($result);
     $this->disable_errorhandler();
     return null;
   }
@@ -482,7 +482,7 @@
     if(!$this->_conn) return false;
     if(!$r) $r = $this->latest_result;
     if(!$r) $this->_die('$db->fetchrow(): an invalid MySQL resource was passed.');
-    mysql_free_result($r);
+    @mysql_free_result($r);
   }
   function sql_numrows($r = false)
   {
@@ -1208,7 +1208,7 @@
       $this->disable_errorhandler();
       return null;
     }
-    pg_free_result($result);
+    @pg_free_result($result);
     $this->disable_errorhandler();
     return null;
   }