From 5ec2ee6c4d81d43b141c2e83204cf35eaabe6056 Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Tue, 6 Sep 2011 13:39:46 +0000 Subject: [PATCH] Prevent Notice --- 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 ee1dce4640..41bd1c1e93 100644 --- a/ext/mysqli/tests/connect.inc +++ b/ext/mysqli/tests/connect.inc @@ -223,7 +223,7 @@ } function have_innodb($link) { - if ($res = $link->query("SHOW VARIABLES LIKE 'have_innodb'") && + if (($res = $link->query("SHOW VARIABLES LIKE 'have_innodb'")) && $row = $res->fetch_row() && !empty($row)) { if ($row[1] == "DISABLED" || $row[1] == "NO") { -- 2.50.1