Use proper andwhere clause

Fixes #19248

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-02-03 12:17:46 +01:00 committed by Backportbot
parent 297debef34
commit c680ebbc15

View file

@ -600,7 +600,7 @@ class FederatedShareProvider implements IShareProvider {
$qb = $this->dbConnection->getQueryBuilder(); $qb = $this->dbConnection->getQueryBuilder();
$qb->delete('share') $qb->delete('share')
->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId))) ->where($qb->expr()->eq('id', $qb->createNamedParameter($shareId)))
->where($qb->expr()->neq('share_type', $qb->createNamedParameter(IShare::TYPE_CIRCLE))); ->andWhere($qb->expr()->neq('share_type', $qb->createNamedParameter(IShare::TYPE_CIRCLE)));
$qb->execute(); $qb->execute();
$qb->delete('federated_reshares') $qb->delete('federated_reshares')