From: Siebrand Mazeland Date: Fri, 27 Dec 2013 00:52:09 +0000 (+0100) Subject: Remove unused local variables X-Git-Tag: 1.31.0-rc.0~17494^2 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=d47145d894abe716087179cc6dc332e26359df39;p=lhc%2Fweb%2Fwiklou.git Remove unused local variables Change-Id: I9e5667d3b27c7685004e2f3215ea51176988d3b2 --- diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index cfa2074b78..7410e49a79 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -765,11 +765,8 @@ __INDEXATTR__; if ( !$res ) { return null; } - foreach ( $res as $row ) { - return true; - } - return false; + return $res->numRows() > 0; } /** @@ -880,7 +877,7 @@ __INDEXATTR__; } } if ( $savepoint ) { - $olde = error_reporting( $olde ); + error_reporting( $olde ); $savepoint->commit(); // Set the affected row count for the whole operation @@ -952,7 +949,7 @@ __INDEXATTR__; $savepoint->release(); $numrowsinserted++; } - $olde = error_reporting( $olde ); + error_reporting( $olde ); $savepoint->commit(); // Set the affected row count for the whole operation