Merge "Add curly braces to while"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 14 Oct 2015 16:56:10 +0000 (16:56 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 14 Oct 2015 16:56:10 +0000 (16:56 +0000)
includes/db/DatabasePostgres.php

index 64ae1c6..9c5127f 100644 (file)
@@ -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" );
                }