Cleared up a few warnings that appeared under the Phalanger PHP interpreter.
authorDan
Sun, 12 Apr 2009 19:50:58 -0400
changeset 902 e7c6f1aa7b6a
parent 901 99ea0b0ac4be
child 903 b8db9a7946fc
Cleared up a few warnings that appeared under the Phalanger PHP interpreter.
includes/dbal.php
--- a/includes/dbal.php	Sun Apr 12 19:26:13 2009 -0400
+++ b/includes/dbal.php	Sun Apr 12 19:50:58 2009 -0400
@@ -477,7 +477,7 @@
     if(!$r) $this->_die('$db->fetchrow(): an invalid MySQL resource was passed.');
     return mysql_num_rows($r);
   }
-  function sql_affectedrows($r = false, $f, $n)
+  function sql_affectedrows($r = false, $f = false, $n = false)
   {
     if(!$this->_conn) return false;
     if(!$r) $r = $this->latest_result;
@@ -967,7 +967,7 @@
     }
     
     $time_start = microtime_float();
-    $r = @pg_query($q);
+    $r = @pg_query($this->_conn, $q);
     $this->query_times[$q] = microtime_float() - $time_start;
     $this->latest_result = $r;
     return $r;
@@ -1185,7 +1185,7 @@
   {
     return $this->numrows();
   }
-  function sql_affectedrows($r = false, $f, $n)
+  function sql_affectedrows($r = false, $f = false, $n = false)
   {
     if(!$this->_conn) return false;
     if(!$r) $r = $this->latest_result;