From: umherirrender Date: Wed, 14 Oct 2015 09:42:00 +0000 (+0200) Subject: Add curly braces to while X-Git-Tag: 1.31.0-rc.0~9392^2 X-Git-Url: https://git.cyclocoop.org/%27%20.%20%24this-%3EgetSkin%28%29-%3EescapeSearchLink%28%29%20.%20%27?a=commitdiff_plain;h=6ff5461ce9884ab0ca98b48d3aa4aedc3038087c;p=lhc%2Fweb%2Fwiklou.git Add curly braces to while Follows Iaa1a479b5eefcae0fc8f82b1d20e9575d609c0e9 Change-Id: I7f2b9b12e3282f5b8ba54a315fa12f1a97985572 --- diff --git a/includes/db/DatabasePostgres.php b/includes/db/DatabasePostgres.php index 64ae1c6c61..9c5127f952 100644 --- a/includes/db/DatabasePostgres.php +++ b/includes/db/DatabasePostgres.php @@ -396,8 +396,9 @@ class DatabasePostgres extends Database { $sql = mb_convert_encoding( $sql, 'UTF-8' ); } // Clear previously left over PQresult - while ( $res = pg_get_result( $this->mConn ) ) + while ( $res = pg_get_result( $this->mConn ) ) { pg_free_result( $res ); + } if ( pg_send_query( $this->mConn, $sql ) === false ) { throw new DBUnexpectedError( $this, "Unable to post new query to PostgreSQL\n" ); }