]> granicus.if.org Git - php/commitdiff
More parenthesis, credits to Nikita Popov
authorUlf Wendel <uw@php.net>
Tue, 6 Sep 2011 16:13:03 +0000 (16:13 +0000)
committerUlf Wendel <uw@php.net>
Tue, 6 Sep 2011 16:13:03 +0000 (16:13 +0000)
ext/mysqli/tests/connect.inc

index 41bd1c1e9342b58414e86f18582c3823915b4fe3..3a9d8ec258c8c2f369fd699da03e8fd68431a12b 100644 (file)
 
                function have_innodb($link) {
                  if (($res = $link->query("SHOW VARIABLES LIKE 'have_innodb'")) &&
-                               $row = $res->fetch_row() &&
+                               ($row = $res->fetch_row()) &&
                                !empty($row)) {
                                if ($row[1] == "DISABLED" || $row[1] == "NO") {
                                        return false;