From 315aa73dc85413a345b11b73788d0dd6b9db1acc Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 16 May 2007 20:29:05 +0000 Subject: [PATCH] Replace defined with isset, thanks to David Ford, david@blue-labs.org --- includes/DatabasePostgres.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } /** -- 2.20.1