Fixed InnoDB check
authorMarcel Werk <burntime@woltlab.com>
Thu, 27 Jun 2013 17:37:35 +0000 (19:37 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 27 Jun 2013 17:37:35 +0000 (19:37 +0200)
wcfsetup/install/files/lib/system/WCFSetup.class.php

index 7f1145d4a91648f15344b00bcbd8875a3279d91f..8dbd28f1cbba2d5e77f5dd6f2adf6708c7a8baf5 100644 (file)
@@ -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.");
                                        }
                                }