From 6c304836d048a8980011df918a4ab594ead918e7 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 3 Jun 2014 21:08:23 +0200 Subject: [PATCH] Small GUI improvement --- wcfsetup/install/files/acp/templates/userSearch.tpl | 2 +- wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/userSearch.tpl b/wcfsetup/install/files/acp/templates/userSearch.tpl index c39b49108a..e4a8c328be 100644 --- a/wcfsetup/install/files/acp/templates/userSearch.tpl +++ b/wcfsetup/install/files/acp/templates/userSearch.tpl @@ -70,7 +70,7 @@
- +
diff --git a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php index 96d8894a7c..0735156f82 100755 --- a/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserSearchForm.class.php @@ -49,7 +49,7 @@ class UserSearchForm extends UserOptionListForm { * user id * @var integer */ - public $userID = 0; + public $userID = null; /** * group ids @@ -198,7 +198,7 @@ class UserSearchForm extends UserOptionListForm { if (isset($_POST['username'])) $this->username = StringUtil::trim($_POST['username']); if (isset($_POST['email'])) $this->email = StringUtil::trim($_POST['email']); - if (isset($_POST['userID'])) $this->userID = intval($_POST['userID']); + if (!empty($_POST['userID'])) $this->userID = intval($_POST['userID']); if (isset($_POST['groupIDs']) && is_array($_POST['groupIDs'])) $this->groupIDs = ArrayUtil::toIntegerArray($_POST['groupIDs']); if (isset($_POST['languageIDs']) && is_array($_POST['languageIDs'])) $this->languageIDs = ArrayUtil::toIntegerArray($_POST['languageIDs']); if (isset($_POST['invertGroupIDs'])) $this->invertGroupIDs = intval($_POST['invertGroupIDs']); -- 2.20.1