1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fixed check for guests in dashboard

This commit is contained in:
Tim Düsterhus 2013-04-24 14:33:47 +02:00
parent 7004196b61
commit 38bc3cf163

View File

@ -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