From 6a4f6a98ba58c73b816000356751b2a743d5d2ce Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 27 Jun 2013 19:37:35 +0200 Subject: [PATCH] Fixed InnoDB check --- wcfsetup/install/files/lib/system/WCFSetup.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index 7f1145d4a9..8dbd28f1cb 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -630,12 +630,12 @@ class WCFSetup extends WCF { } } // check innodb support - if ($dbClass == 'MySQLDatabase') { + if ($dbClass == 'wcf\system\database\MySQLDatabase') { $sql = "SHOW VARIABLES WHERE Variable_name = 'have_innodb'"; $statement = $db->prepareStatement($sql); $statement->execute(); $row = $statement->fetchArray(); - if ($row !== false || $row['Value'] != 'YES') { + if ($row === false || $row['Value'] != 'YES') { throw new SystemException("Support for InnoDB is missing."); } } -- 2.20.1