From 366b7207cae17efacd83951d3ccb0e85d5a6ca87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 10 Jun 2012 18:48:08 +0200 Subject: [PATCH] Adding $this->room again --- file/lib/page/ChatRefreshRoomListPage.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/file/lib/page/ChatRefreshRoomListPage.class.php b/file/lib/page/ChatRefreshRoomListPage.class.php index 05ed646..771fcd5 100644 --- a/file/lib/page/ChatRefreshRoomListPage.class.php +++ b/file/lib/page/ChatRefreshRoomListPage.class.php @@ -23,6 +23,7 @@ class ChatRefreshRoomListPage extends AbstractPage { * @see \wcf\page\AbstractPage::$neededPermissions */ public $neededPermissions = array('user.chat.canEnter'); + public $room = null; public $rooms = array(); /** @@ -39,8 +40,8 @@ public function readData() { $this->rooms = chat\room\ChatRoom::getCache(); $roomID = \wcf\util\ChatUtil::readUserData('roomID'); - $room = $this->rooms->search($roomID); - if (!$room) throw new \wcf\system\exception\IllegalLinkException(); + $this->room = $this->rooms->search($roomID); + if (!$this->room) throw new \wcf\system\exception\IllegalLinkException(); } /**