]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(userstatus): add missing parenthesis 46287/head
authorAnna Larch <anna@nextcloud.com>
Wed, 3 Jul 2024 15:05:26 +0000 (17:05 +0200)
committerAndy Scherzinger <info@andy-scherzinger.de>
Thu, 1 Aug 2024 13:53:33 +0000 (15:53 +0200)
Signed-off-by: Anna Larch <anna@nextcloud.com>
apps/dav/lib/CalDAV/Status/StatusService.php

index be8ad90dd4516b137ac18ec33011dcac55f1350c..382621f1ba0e1a69bbcf815922d3243c0f7b1762 100644 (file)
@@ -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;