diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2022-07-27 16:45:10 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2022-07-27 16:45:10 +0200 |
commit | 361e69f19fd3af632452dbe586065ab42103cf47 (patch) | |
tree | 278d98f203109d67e54839a1fad2f6f949775ba2 /lib/private/AllConfig.php | |
parent | d24823bda5c2fff264fb7d27f1cd2a8383515bcc (diff) | |
download | nextcloud-server-361e69f19fd3af632452dbe586065ab42103cf47.tar.gz nextcloud-server-361e69f19fd3af632452dbe586065ab42103cf47.zip |
fix mistake in db query to delete a user config value
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'lib/private/AllConfig.php')
-rw-r--r-- | lib/private/AllConfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php index 7e01e0ca815..2a0e8f53b14 100644 --- a/lib/private/AllConfig.php +++ b/lib/private/AllConfig.php @@ -353,8 +353,8 @@ class AllConfig implements IConfig { $qb = $this->connection->getQueryBuilder(); $qb->delete('preferences') ->where($qb->expr()->eq('userid', $qb->createNamedParameter($userId, IQueryBuilder::PARAM_STR))) - ->where($qb->expr()->eq('appid', $qb->createNamedParameter($appName, IQueryBuilder::PARAM_STR))) - ->where($qb->expr()->eq('configkey', $qb->createNamedParameter($key, IQueryBuilder::PARAM_STR))) + ->andWhere($qb->expr()->eq('appid', $qb->createNamedParameter($appName, IQueryBuilder::PARAM_STR))) + ->andWhere($qb->expr()->eq('configkey', $qb->createNamedParameter($key, IQueryBuilder::PARAM_STR))) ->executeStatement(); if (isset($this->userCache[$userId][$appName])) { |