From 0f31db8d11707f4d0a51cff4afc2ebcf56394622 Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Tue, 6 Sep 2011 16:13:03 +0000 Subject: [PATCH] More parenthesis, credits to Nikita Popov --- ext/mysqli/tests/connect.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/mysqli/tests/connect.inc b/ext/mysqli/tests/connect.inc index 41bd1c1e93..3a9d8ec258 100644 --- a/ext/mysqli/tests/connect.inc +++ b/ext/mysqli/tests/connect.inc @@ -224,7 +224,7 @@ 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; -- 2.40.0