summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/BackgroundJob
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-01-20 07:21:22 +0100
committerJoas Schilling <coding@schilljs.com>2023-01-20 07:21:22 +0100
commit1aba0e22ba152e87f80eb08a5e28d8611cd51877 (patch)
treeb61a9dd550e7e2403d6f5b8a97c6983da97120e1 /apps/dav/lib/BackgroundJob
parent5e3a3c0c8faa45489aa6ac610728b4177501c198 (diff)
downloadnextcloud-server-1aba0e22ba152e87f80eb08a5e28d8611cd51877.tar.gz
nextcloud-server-1aba0e22ba152e87f80eb08a5e28d8611cd51877.zip
Fix WHERE condition when selecting user's availability for the status automation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/BackgroundJob')
-rw-r--r--apps/dav/lib/BackgroundJob/UserStatusAutomation.php2
1 files changed, 1 insertions, 1 deletions
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();