]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix WHERE condition when selecting user's availability for the status automation 36260/head
authorJoas Schilling <coding@schilljs.com>
Fri, 20 Jan 2023 06:21:22 +0000 (07:21 +0100)
committerJoas Schilling <coding@schilljs.com>
Fri, 20 Jan 2023 06:21:22 +0000 (07:21 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/lib/BackgroundJob/UserStatusAutomation.php

index bbd92d903ee8ef125ff576a2593050a566513116..94feadcae935aa2e000e83c9b180ab4f4c8c721a 100644 (file)
@@ -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();