diff --git a/file/lib/acp/form/ChatRoomAddForm.class.php b/file/lib/acp/form/ChatRoomAddForm.class.php index 46dd2f6..422dbcb 100644 --- a/file/lib/acp/form/ChatRoomAddForm.class.php +++ b/file/lib/acp/form/ChatRoomAddForm.class.php @@ -68,23 +68,8 @@ public function validate() { parent::validate(); // validate title - try { - if (!I18nHandler::getInstance()->validateValue('title')) { - throw new UserInputException('title'); - } - } - catch (UserInputException $e) { - $this->errorType[$e->getField()] = $e->getType(); - } - - // validate topic - try { - if (!I18nHandler::getInstance()->validateValue('topic')) { - throw new UserInputException('topic'); - } - } - catch (UserInputException $e) { - $this->errorType[$e->getField()] = $e->getType(); + if (!I18nHandler::getInstance()->validateValue('title')) { + throw new UserInputException('title'); } }