summaryrefslogtreecommitdiffstats
path: root/settings/controller
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-01-18 18:31:03 +0100
committerLukas Reschke <lukas@owncloud.com>2015-01-18 18:31:03 +0100
commit2272bcedebe3db2d1ec46f116599414c936f287c (patch)
treef0cbf84c8faf61e1c61ca622c1b1cda6df97289d /settings/controller
parent8285744e4af1190558f73a9fce30a2ed6e3a1187 (diff)
downloadnextcloud-server-2272bcedebe3db2d1ec46f116599414c936f287c.tar.gz
nextcloud-server-2272bcedebe3db2d1ec46f116599414c936f287c.zip
Fix filtering for users when $gid is empty
Previously when $gid was empty the users were not filtered at all. Rendering the search function in the user management pretty useless. Fixes itself
Diffstat (limited to 'settings/controller')
-rw-r--r--settings/controller/userscontroller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/controller/userscontroller.php b/settings/controller/userscontroller.php
index 844ed4759e3..1be2f4db9b9 100644
--- a/settings/controller/userscontroller.php
+++ b/settings/controller/userscontroller.php
@@ -161,7 +161,7 @@ class UsersController extends Controller {
if($gid !== '') {
$batch = $this->getUsersForUID($this->groupManager->displayNamesInGroup($gid, $pattern, $limit, $offset));
} else {
- $batch = $this->userManager->search('', $limit, $offset);
+ $batch = $this->userManager->search($pattern, $limit, $offset);
}
foreach ($batch as $user) {