Add curly braces to while
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 14 Oct 2015 09:42:00 +0000 (11:42 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Wed, 14 Oct 2015 09:42:00 +0000 (11:42 +0200)
Follows Iaa1a479b5eefcae0fc8f82b1d20e9575d609c0e9

Change-Id: I7f2b9b12e3282f5b8ba54a315fa12f1a97985572

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" );
                }