From a421cc92c5815eb1529f534562fc6068b29548ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 23 May 2013 22:40:47 +0200 Subject: [PATCH] Fix user online for guests --- file/lib/page/ChatPage.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index 5942834..024081a 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -238,6 +238,8 @@ public function getObjectType() { * @see wcf\page\ITrackablePage::getObjectID() */ public function getObjectID() { + if ($this->room === null) return 0; + return $this->room->roomID; } }