From 5c61405a9a1a7b2a055f99fd09f33faade87b550 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 13 Apr 2015 10:27:10 +0200 Subject: [PATCH] Revert "Setup: Fix that the mysql privilege checks are not working in the wizard" This reverts commit 1835479738ab1a45a0892c6b3dd301d27059e58e. Operator precedence is a damn useful thing, if known by the developer... --- modules/setup/library/Setup/Utils/DbTool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/setup/library/Setup/Utils/DbTool.php b/modules/setup/library/Setup/Utils/DbTool.php index 3dd450d9c..b08f42bf8 100644 --- a/modules/setup/library/Setup/Utils/DbTool.php +++ b/modules/setup/library/Setup/Utils/DbTool.php @@ -691,7 +691,7 @@ EOD; . ' AND ' . $privilegeCondition . ($requireGrants ? " AND is_grantable = 'YES'" : ''), array(':grantee' => $grantee) ); - return $query->fetchObject()->matches === count($mysqlPrivileges); + return (int) $query->fetchObject()->matches === count($mysqlPrivileges); } /**