summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:39:44 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-01-30 02:39:44 +0100
commit19867b1d0881d0ee427f889e2fb7ec72caf73090 (patch)
tree072b647fd1902641169da235441f5c3c0606880c /apps/user_ldap/lib
parenta5575220376afc5a2b47784368183983aec432ef (diff)
downloadnextcloud-server-19867b1d0881d0ee427f889e2fb7ec72caf73090.tar.gz
nextcloud-server-19867b1d0881d0ee427f889e2fb7ec72caf73090.zip
LDAP: make sure app meta data is not deleted from database when deleting configuration with empty prefix
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r--apps/user_ldap/lib/helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/helper.php b/apps/user_ldap/lib/helper.php
index 03a65a65b1c..263d95f898f 100644
--- a/apps/user_ldap/lib/helper.php
+++ b/apps/user_ldap/lib/helper.php
@@ -81,7 +81,8 @@ class Helper {
DELETE
FROM `*PREFIX*appconfig`
WHERE `configkey` LIKE ?
- AND appid = "user_ldap"
+ AND `appid` = "user_ldap"
+ AND `configkey` NOT IN ("enabled", "installed_version", "types", "bgjUpdateGroupsLastRun")
');
$res = $query->execute(array($prefix.'%'));