From 1aba0e22ba152e87f80eb08a5e28d8611cd51877 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 20 Jan 2023 07:21:22 +0100 Subject: Fix WHERE condition when selecting user's availability for the status automation Signed-off-by: Joas Schilling --- apps/dav/lib/BackgroundJob/UserStatusAutomation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php b/apps/dav/lib/BackgroundJob/UserStatusAutomation.php index bbd92d903ee..94feadcae93 100644 --- a/apps/dav/lib/BackgroundJob/UserStatusAutomation.php +++ b/apps/dav/lib/BackgroundJob/UserStatusAutomation.php @@ -176,7 +176,7 @@ class UserStatusAutomation extends TimedJob { ->from('properties') ->where($query->expr()->eq('userid', $query->createNamedParameter($userId))) ->andWhere($query->expr()->eq('propertypath', $query->createNamedParameter($propertyPath))) - ->where($query->expr()->eq('propertyname', $query->createNamedParameter($propertyName))) + ->andWhere($query->expr()->eq('propertyname', $query->createNamedParameter($propertyName))) ->setMaxResults(1); $result = $query->executeQuery(); -- cgit v1.2.3