diff --git a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php index 4af020c..a7b387d 100644 --- a/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php +++ b/file/lib/system/dashboard/box/OnlineListDashboardBox.class.php @@ -38,6 +38,9 @@ public function init(\wcf\data\dashboard\box\DashboardBox $box, \wcf\page\IPage * @see wcf\system\dashboard\box\AbstractContentDashboardBox::render() */ protected function render() { + if (!MODULE_CHAT) return false; + if (!\wcf\system\WCF::getUser()->userID) return false; + \wcf\system\WCF::getTPL()->assign(array( 'rooms' => $this->rooms ));