Replace defined with isset, thanks to David Ford, david@blue-labs.org
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 16 May 2007 20:29:05 +0000 (20:29 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Wed, 16 May 2007 20:29:05 +0000 (20:29 +0000)
includes/DatabasePostgres.php

index 84e8c64..7397351 100644 (file)
@@ -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 );
        }
 
        /**