From: Greg Sabino Mullane Date: Tue, 29 May 2007 20:28:59 +0000 (+0000) Subject: The variable mLastResult may be null /or/ false: check for both in affected rows... X-Git-Tag: 1.31.0-rc.0~52776 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=277ea8a8d43231da2340bd9c0cb13d80c7b90012;p=lhc%2Fweb%2Fwiklou.git The variable mLastResult may be null /or/ false: check for both in affected rows method. --- diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 8a40e66acc..b5721db2b2 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -561,7 +561,7 @@ class DatabasePostgres extends Database { } function affectedRows() { - if( !isset( $this->mLastResult ) ) + if( !isset( $this->mLastResult ) or ! $this->mLastResult ) return 0; return pg_affected_rows( $this->mLastResult );