From 6ff5461ce9884ab0ca98b48d3aa4aedc3038087c Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 14 Oct 2015 11:42:00 +0200 Subject: [PATCH] Add curly braces to while Follows Iaa1a479b5eefcae0fc8f82b1d20e9575d609c0e9 Change-Id: I7f2b9b12e3282f5b8ba54a315fa12f1a97985572 --- includes/db/DatabasePostgres.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" ); } -- 2.20.1