aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-08-01 22:24:21 +0200
committerGitHub <noreply@github.com>2024-08-01 22:24:21 +0200
commit0f1c930afe2c49a501632676c1f82c320080b537 (patch)
tree1e55cf25bbb6dcd227baf126ad15c1df4b8e7ac9 /apps
parent1d978005f796cfdfc22bc104eada2677d8a4d2fb (diff)
parent06ad7009f438ccb664f7a1d055b8df482c6ea61c (diff)
downloadnextcloud-server-0f1c930afe2c49a501632676c1f82c320080b537.tar.gz
nextcloud-server-0f1c930afe2c49a501632676c1f82c320080b537.zip
Merge pull request #46960 from nextcloud/backport/46287/stable29
[stable29] fix(userstatus): add missing parenthesis
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/CalDAV/Status/StatusService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/CalDAV/Status/StatusService.php b/apps/dav/lib/CalDAV/Status/StatusService.php
index ed2c233055c..e6aa9f103b6 100644
--- a/apps/dav/lib/CalDAV/Status/StatusService.php
+++ b/apps/dav/lib/CalDAV/Status/StatusService.php
@@ -98,9 +98,9 @@ class StatusService {
$currentStatus = null;
}
- if($currentStatus !== null && $currentStatus->getMessageId() === IUserStatus::MESSAGE_CALL
- || $currentStatus !== null && $currentStatus->getStatus() === IUserStatus::DND
- || $currentStatus !== null && $currentStatus->getStatus() === IUserStatus::INVISIBLE) {
+ if(($currentStatus !== null && $currentStatus->getMessageId() === IUserStatus::MESSAGE_CALL)
+ || ($currentStatus !== null && $currentStatus->getStatus() === IUserStatus::DND)
+ || ($currentStatus !== null && $currentStatus->getStatus() === IUserStatus::INVISIBLE)) {
// We don't overwrite the call status, DND status or Invisible status
$this->logger->debug('Higher priority status detected, skipping calendar status change', ['user' => $userId]);
return;