diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-11-06 13:01:37 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-11-06 13:01:37 +0100 |
commit | 4104416e813e8ec80ce0e91a35f8e0bc538bd0d0 (patch) | |
tree | 541add030dd1c651f371b4e275801eb355cd0825 /apps/user_ldap/lib/Helper.php | |
parent | 8547934e2089c076e527d1bc2e2dad7bdb97f64b (diff) | |
download | nextcloud-server-4104416e813e8ec80ce0e91a35f8e0bc538bd0d0.tar.gz nextcloud-server-4104416e813e8ec80ce0e91a35f8e0bc538bd0d0.zip |
only delete specified config
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Helper.php')
-rw-r--r-- | apps/user_ldap/lib/Helper.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/Helper.php b/apps/user_ldap/lib/Helper.php index c1e3bed674e..dce67a76c41 100644 --- a/apps/user_ldap/lib/Helper.php +++ b/apps/user_ldap/lib/Helper.php @@ -165,6 +165,7 @@ class Helper { $query = $this->connection->getQueryBuilder(); $query->delete('appconfig') ->where($query->expr()->eq('appid', $query->createNamedParameter('user_ldap'))) + ->andWhere($query->expr()->like('configkey', $query->createNamedParameter((string)$prefix . '%'))) ->andWhere($query->expr()->notIn('configkey', $query->createNamedParameter([ 'enabled', 'installed_version', |