diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-08 13:02:09 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-08 13:02:09 +0300 |
commit | 5f6e7ce28566244bfcd9046d26437ae75ecf766c (patch) | |
tree | af88789d4ba386479ed3e160c4fb94d0dc809750 /lib | |
parent | e0ac55d88a2f16e58b65411799b04e0b5f7c1b3b (diff) |
Fix query expression
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/AliasMapper.php | 2 |
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)) |