]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(userstatus): add missing parenthesis 46959/head
authorAnna Larch <anna@nextcloud.com>
Wed, 3 Jul 2024 15:05:26 +0000 (17:05 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 1 Aug 2024 16:14:50 +0000 (16:14 +0000)
Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/dav/lib/CalDAV/Status/StatusService.php

index 4fce4e08543b697ee5aab4069828619cfcd0a68a..83ebbdb759c4ab7aba4c421360aadff496be26f7 100644 (file)
@@ -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;