trim must not be used in empty in PHP < 5.5

remotes/origin/stable6
Arthur Schiwon 13 years ago
parent 6aeb5996b6
commit 72b90816fa
  1. 3
      lib/private/group/manager.php

@ -176,7 +176,8 @@ class Manager extends PublicEmitter {
}
// only user backends have the capability to do a complex search for users
$groupUsers = $group->searchUsers('', $limit, $offset);
if(!empty(trim($search))) {
$search = trim($search);
if(!empty($search)) {
//TODO: for OC 7 earliest: user backend should get a method to check selected users against a pattern
$filteredUsers = $this->userManager->search($search);
$testUsers = true;

Loading…
Cancel
Save