From f934c2786dc736d3c3ce7764b0a1dd67d7345eaf Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 15 Nov 2014 23:10:00 +0100 Subject: [PATCH] Fixed query --- wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php b/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php index da0c8b27fa..a8379f4af3 100644 --- a/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/RebuildDataPage.class.php @@ -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; -- 2.20.1