From: Ulf Wendel Date: Tue, 6 Sep 2011 13:39:46 +0000 (+0000) Subject: Prevent Notice X-Git-Tag: php-5.5.0alpha1~1275 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ec2ee6c4d81d43b141c2e83204cf35eaabe6056;p=php Prevent Notice --- 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") {