diff options
author | Anna Larch <anna@nextcloud.com> | 2024-07-03 17:05:26 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-08-01 15:53:33 +0200 |
commit | 3776eb4e019003154c2964a4f6f04d5fb032314a (patch) | |
tree | 4862db48b45923e787ea503530abdcc6ac9fd55b /apps/dav/lib/CalDAV | |
parent | 13921cab9836de9290ffa9d7058a88dc67b41125 (diff) | |
download | nextcloud-server-3776eb4e019003154c2964a4f6f04d5fb032314a.tar.gz nextcloud-server-3776eb4e019003154c2964a4f6f04d5fb032314a.zip |
fix(userstatus): add missing parenthesis
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r-- | apps/dav/lib/CalDAV/Status/StatusService.php | 6 |
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; |