From dbb9b68331e9d1a2104a5e969b47bc893d232c1f Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Sat, 2 Mar 2013 16:26:15 +0100 Subject: Fix quoting of query for user_ldap ref #1983 --- apps/user_ldap/lib/helper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/user_ldap') diff --git a/apps/user_ldap/lib/helper.php b/apps/user_ldap/lib/helper.php index 45c379445af..308da3ef724 100644 --- a/apps/user_ldap/lib/helper.php +++ b/apps/user_ldap/lib/helper.php @@ -54,7 +54,7 @@ class Helper { WHERE `configkey` LIKE ? '; if($activeConfigurations) { - $query .= ' AND `configvalue` = 1'; + $query .= ' AND `configvalue` = \'1\''; } $query = \OCP\DB::prepare($query); @@ -86,8 +86,8 @@ class Helper { DELETE FROM `*PREFIX*appconfig` WHERE `configkey` LIKE ? - AND `appid` = "user_ldap" - AND `configkey` NOT IN ("enabled", "installed_version", "types", "bgjUpdateGroupsLastRun") + AND `appid` = \'user_ldap\' + AND `configkey` NOT IN (\'enabled\', \'installed_version\', \'types\', \'bgjUpdateGroupsLastRun\') '); $res = $query->execute(array($prefix.'%')); -- cgit v1.2.3