diff --git a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php index 3f44ff4..533f707 100644 --- a/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php +++ b/file/lib/system/menu/page/ChatPageMenuItemProvider.class.php @@ -25,8 +25,14 @@ public function isVisible() { try { $cache = ChatRoom::getCache(); - $cache->seek(0); - $this->room = $cache->search($cache->key()); + $i = 0; + + do { + $cache->seek($i++); + $this->room = $cache->search($cache->key()); + } + while (!$this->room->canEnter()); + return true; } catch (\OutOfBoundsException $e) {