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:14:50 +0000 |
commit | 64b8537afb4b964e5ff90f1d8d82d5e97147271b (patch) | |
tree | 298cc1d7b84d4219d22fc900de152b1d56e76832 | |
parent | 31f1834a20ef20c8b18b0f03badc40dca9e0647d (diff) | |
download | nextcloud-server-64b8537afb4b964e5ff90f1d8d82d5e97147271b.tar.gz nextcloud-server-64b8537afb4b964e5ff90f1d8d82d5e97147271b.zip |
fix(userstatus): add missing parenthesis
Signed-off-by: Anna Larch <anna@nextcloud.com>
-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 4fce4e08543..83ebbdb759c 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; |