diff --git a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php index 4027391..289e3be 100644 --- a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php +++ b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php @@ -24,6 +24,7 @@ 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; $this->rooms = data\room\Room::getCache(); foreach ($this->rooms as $key => $room) { @@ -35,6 +36,7 @@ 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