1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Provide field in UserInputException in RoomAction::validateJoin()

This commit is contained in:
Tim Düsterhus 2014-01-08 15:55:24 +01:00
parent ae5287c398
commit 0f049ba48a

View File

@ -167,7 +167,7 @@ public function validateJoin() {
$this->readInteger('roomID'); $this->readInteger('roomID');
$room = RoomCache::getInstance()->getRoom($this->parameters['roomID']); $room = RoomCache::getInstance()->getRoom($this->parameters['roomID']);
if ($room === null) throw new exception\UserInputException(); if ($room === null) throw new exception\UserInputException('roomID');
if (!$room->canEnter()) throw new exception\PermissionDeniedException(); if (!$room->canEnter()) throw new exception\PermissionDeniedException();
} }