From: Marcel Werk Date: Tue, 1 Jan 2019 21:19:26 +0000 (+0100) Subject: Made 'restrictUserGroupIDs' optional X-Git-Tag: 5.2.0_Alpha_1~388 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19e7cd418f62989149570a1895cdfc16c60b0093;p=GitHub%2FWoltLab%2FWCF.git Made 'restrictUserGroupIDs' optional --- diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 24b50335ca..c2fd6279a0 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -478,7 +478,7 @@ class UserAction extends AbstractDatabaseObjectAction implements IClipboardActio public function validateGetSearchResultList() { $this->readBoolean('includeUserGroups', false, 'data'); $this->readString('searchString', false, 'data'); - $this->readIntegerArray('restrictUserGroupIDs', false, 'data'); + $this->readIntegerArray('restrictUserGroupIDs', true, 'data'); if (isset($this->parameters['data']['excludedSearchValues']) && !is_array($this->parameters['data']['excludedSearchValues'])) { throw new UserInputException('excludedSearchValues');