summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-08-01 18:13:43 +0200
committerGitHub <noreply@github.com>2024-08-01 18:13:43 +0200
commitf645c9bd74656a7896344a72026de3e8cd21ebb1 (patch)
tree2c8b6962712398aec9c4abcabadcb47cba2ed24e /apps
parent5faa9033636b44ab9e7bb304d9cb35d6ce4e67ac (diff)
parent3776eb4e019003154c2964a4f6f04d5fb032314a (diff)
downloadnextcloud-server-f645c9bd74656a7896344a72026de3e8cd21ebb1.tar.gz
nextcloud-server-f645c9bd74656a7896344a72026de3e8cd21ebb1.zip
Merge pull request #46287 from nextcloud/fix/noid/missing-parentheses
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 be8ad90dd45..382621f1ba0 100644
--- a/apps/dav/lib/CalDAV/Status/StatusService.php
+++ b/apps/dav/lib/CalDAV/Status/StatusService.php
@@ -81,9 +81,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;