diff --git a/file/lib/system/user/online/location/ChatLocation.class.php b/file/lib/system/user/online/location/ChatLocation.class.php index 73bd40d..c024678 100644 --- a/file/lib/system/user/online/location/ChatLocation.class.php +++ b/file/lib/system/user/online/location/ChatLocation.class.php @@ -23,10 +23,10 @@ public function cache(\wcf\data\user\online\UserOnline $user) {} public function get(\wcf\data\user\online\UserOnline $user, $languageVariable = '') { $rooms = data\room\RoomCache::getInstance()->getRooms(); - if (isset($cache[$user->objectID])) { - if ($cache[$user->objectID]->canEnter()) { + if (isset($rooms[$user->objectID])) { + if ($rooms[$user->objectID]->canEnter()) { return \wcf\system\WCF::getLanguage()->getDynamicVariable($languageVariable, array( - 'room' => $cache[$user->objectID] + 'room' => $rooms[$user->objectID] )); } }