From 13a8147ebcbb02d870a32b675c347b24056c0f89 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 3 Oct 2013 14:21:00 +0200 Subject: [PATCH] Fixed option-related forms --- .../files/lib/acp/form/AbstractOptionListForm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php index 11c2daf902..726df15564 100755 --- a/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php @@ -84,10 +84,10 @@ abstract class AbstractOptionListForm extends AbstractForm { * @see wcf\form\IForm::validate() */ public function validate() { - parent::validate(); - $this->errorType = array_merge($this->optionHandler->validate(), $this->errorType); + parent::validate(); + if (!empty($this->errorType)) { throw new UserInputException('options', $this->errorType); } -- 2.20.1