1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix ChatLocation

This commit is contained in:
Tim Düsterhus 2014-02-28 23:07:51 +01:00
parent f4c294a77c
commit 2960959716

View File

@ -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]
));
}
}