diff options
author | Anna Larch <anna@nextcloud.com> | 2024-07-03 17:05:26 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-08-01 16:16:10 +0000 |
commit | 06ad7009f438ccb664f7a1d055b8df482c6ea61c (patch) | |
tree | 7d195c21ade7c560be5110b2dc2603ad166c2d9c /apps/dav | |
parent | 84e5b477f9984348a4766b2dbc10609ed750dc4b (diff) | |
download | nextcloud-server-06ad7009f438ccb664f7a1d055b8df482c6ea61c.tar.gz nextcloud-server-06ad7009f438ccb664f7a1d055b8df482c6ea61c.zip |
fix(userstatus): add missing parenthesis
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/dav')
-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 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; |