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
This commit is contained in:
Lukas Reschke
2015-01-18 18:31:03 +01:00
parent 8285744e4a
commit 2272bcedeb
2 changed files with 128 additions and 1 deletions

View File

@@ -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) {