From: Greg Sabino Mullane Date: Wed, 16 May 2007 20:29:05 +0000 (+0000) Subject: Replace defined with isset, thanks to David Ford, david@blue-labs.org X-Git-Tag: 1.31.0-rc.0~52893 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=315aa73dc85413a345b11b73788d0dd6b9db1acc;hp=2289db61578cc4ade0e828d8d52654302bca0d3d;p=lhc%2Fweb%2Fwiklou.git Replace defined with isset, thanks to David Ford, david@blue-labs.org --- diff --git a/includes/DatabasePostgres.php b/includes/DatabasePostgres.php index 84e8c64f7e..7397351acc 100644 --- a/includes/DatabasePostgres.php +++ b/includes/DatabasePostgres.php @@ -561,10 +561,10 @@ class DatabasePostgres extends Database { } function affectedRows() { - $last = $this->mLastResult; - if ( !defined($last) ) + if( !isset( $this->mLastResult ) ) return 0; - return pg_affected_rows( $last ); + + return pg_affected_rows( $this->mLastResult ); } /**