# HG changeset patch # User Dan # Date 1239580258 14400 # Node ID e7c6f1aa7b6a7f4944f1f103b930cc5e93025c3e # Parent 99ea0b0ac4be9788735ec3d7ed2299ce24e3a5aa Cleared up a few warnings that appeared under the Phalanger PHP interpreter. diff -r 99ea0b0ac4be -r e7c6f1aa7b6a 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;