Fixed query
authorAlexander Ebert <ebert@woltlab.com>
Sat, 15 Nov 2014 22:10:00 +0000 (23:10 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 15 Nov 2014 22:10:00 +0000 (23:10 +0100)
wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php

index da0c8b27fa6971a9f94fbbe335939752a15164eb..a8379f4af3711205c82ba0fecf478e4d60ade26f 100644 (file)
@@ -61,9 +61,9 @@ class RebuildDataPage extends AbstractPage {
                        return 0;
                });
                
-               $sql = "SHOW VARIABLES LIKE ?";
+               $sql = "SHOW VARIABLES LIKE 'innodb_flush_log_at_trx_commit'";
                $statement = WCF::getDB()->prepareStatement($sql);
-               $statement->execute(array('innodb_flush_log_at_trx_commit'));
+               $statement->execute();
                $row = $statement->fetchArray();
                if ($row && $row['Value'] == 1) {
                        $this->showInnoDBWarning = true;