aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-03-15 10:32:16 +0100
committerArthur Schiwon <blizzz@owncloud.com>2014-04-23 13:35:00 +0200
commit72b90816faba41b7bbf22973e826010fa16be257 (patch)
treef8de135830785f116d54632fe3442b91f012ffa9
parent6aeb5996b63cd542bb75ce139700eee27d13a620 (diff)
downloadnextcloud-server-72b90816faba41b7bbf22973e826010fa16be257.tar.gz
nextcloud-server-72b90816faba41b7bbf22973e826010fa16be257.zip
trim must not be used in empty in PHP < 5.5
-rw-r--r--lib/private/group/manager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index 611af0a40fb..e5d3076b7eb 100644
--- a/lib/private/group/manager.php
+++ b/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;