diff --git a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php index 70fb76c..8643021 100644 --- a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php +++ b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php @@ -87,6 +87,8 @@ public function getNotifications() { if (!CHAT_ENABLE_MENU_BADGE) return 0; $rooms = $this->getRooms(); - return array_reduce($rooms, function ($carry, $room) { return $carry + count($room->getUsers()); }, 0); + return array_reduce($rooms, function ($carry, $room) { + return $carry + count($room->getUsers()); + }, 0); } }