From 29609597167d8d69ef84ed640bb7ad32a31f4cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 28 Feb 2014 23:07:51 +0100 Subject: [PATCH] Fix ChatLocation --- file/lib/system/user/online/location/ChatLocation.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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] )); } }