mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Fixed check for guests in dashboard
This commit is contained in:
parent
7004196b61
commit
38bc3cf163
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user