diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-14 10:09:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 10:09:09 +0100 |
commit | c32a94b78d36aace3237d5b0c6c4069976ff06ad (patch) | |
tree | 58cb876586b61cf22d8a2cb7443316c6f1332103 /lib/private/Collaboration | |
parent | d1fb939e863a6f476d3a0a49d6d9717ff0d713a0 (diff) | |
parent | 954da26e26a6f0011efa1432e9de4264e5f5e033 (diff) | |
download | nextcloud-server-c32a94b78d36aace3237d5b0c6c4069976ff06ad.tar.gz nextcloud-server-c32a94b78d36aace3237d5b0c6c4069976ff06ad.zip |
Merge pull request #8337 from nextcloud/use-non-alias-method
Use non aliased method instead
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r-- | lib/private/Collaboration/Collaborators/GroupPlugin.php | 2 | ||||
-rw-r--r-- | lib/private/Collaboration/Collaborators/UserPlugin.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/GroupPlugin.php b/lib/private/Collaboration/Collaborators/GroupPlugin.php index b147d2d7b58..7eee042076e 100644 --- a/lib/private/Collaboration/Collaborators/GroupPlugin.php +++ b/lib/private/Collaboration/Collaborators/GroupPlugin.php @@ -59,7 +59,7 @@ class GroupPlugin implements ISearchPlugin { $groups = $this->groupManager->search($search, $limit, $offset); $groupIds = array_map(function (IGroup $group) { return $group->getGID(); }, $groups); - if (!$this->shareeEnumeration || sizeof($groups) < $limit) { + if (!$this->shareeEnumeration || count($groups) < $limit) { $hasMoreResults = true; } diff --git a/lib/private/Collaboration/Collaborators/UserPlugin.php b/lib/private/Collaboration/Collaborators/UserPlugin.php index d2639249d56..62f76876031 100644 --- a/lib/private/Collaboration/Collaborators/UserPlugin.php +++ b/lib/private/Collaboration/Collaborators/UserPlugin.php @@ -85,7 +85,7 @@ class UserPlugin implements ISearchPlugin { $this->takeOutCurrentUser($users); - if (!$this->shareeEnumeration || sizeof($users) < $limit) { + if (!$this->shareeEnumeration || count($users) < $limit) { $hasMoreResults = true; } |