From 38bc3cf16358927557089aaa4a9eb2a96cd20a2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 24 Apr 2013 14:33:47 +0200 Subject: [PATCH] Fixed check for guests in dashboard --- .../lib/system/dashboard/box/OnlineListDashboardBox.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php index 289e3be..a6c93cd 100644 --- a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php +++ b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php @@ -24,7 +24,8 @@ class OnlineListDashboardBox extends \wcf\system\dashboard\box\AbstractContentDa public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage $page) { parent::init($box, $page); - if (!WCF::getUser()->userID) return; + if (!\wcf\system\WCF::getUser()->userID) return; + $this->rooms = data\room\Room::getCache(); foreach ($this->rooms as $key => $room) { @@ -36,7 +37,6 @@ public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage * @see wcf\system\dashboard\box\AbstractContentDashboardBox::render() */ protected function render() { - if (!WCF::getUser()->userID) return; if (count($this->rooms)) { \wcf\system\WCF::getTPL()->assign(array( 'rooms' => $this->rooms