Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-01-08 13:02:09 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-01-08 13:02:09 +0300
commit5f6e7ce28566244bfcd9046d26437ae75ecf766c (patch)
treeaf88789d4ba386479ed3e160c4fb94d0dc809750 /lib
parente0ac55d88a2f16e58b65411799b04e0b5f7c1b3b (diff)
Fix query expression
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/AliasMapper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/AliasMapper.php b/lib/Db/AliasMapper.php
index fb8782da6..ce46fe5d1 100644
--- a/lib/Db/AliasMapper.php
+++ b/lib/Db/AliasMapper.php
@@ -77,7 +77,7 @@ class AliasMapper extends QBMapper {
$query = $qb->delete($this->getTableName(), 'aliases')
->join('aliases', 'mail_accounts', 'accounts', $qb->expr()->eq('aliases.account_id', 'accounts.id'))
->where($qb->expr()->eq('account_id', $qb->createNamedParameter($accountId)))
- ->where(
+ ->andWhere(
$qb->expr()->andX(
$qb->expr()->eq('accounts.user_id', $qb->createNamedParameter($currentUserId)),
$qb->expr()->eq('aliases.account_id', $qb->createNamedParameter($accountId))