Prevent Notice

This commit is contained in:
Ulf Wendel 2011-09-06 13:39:46 +00:00
parent faeae7ea47
commit cfb4fa47ad

View File

@ -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") {