diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-08 12:31:11 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-08 12:31:11 +0200 |
commit | 5f8d9b3a4e259d1f9c02b482bab37321c0d3b3dc (patch) | |
tree | 943228a5678c3f8a8290baacfd8d23b4dd6489e2 /lib/private/group/group.php | |
parent | 96cb75f5cf8c14f389213e1745cc3a98f8d1cbd4 (diff) | |
download | nextcloud-server-5f8d9b3a4e259d1f9c02b482bab37321c0d3b3dc.tar.gz nextcloud-server-5f8d9b3a4e259d1f9c02b482bab37321c0d3b3dc.zip |
ask implementsAction instead of checking method_exists for easier testing
Diffstat (limited to 'lib/private/group/group.php')
-rw-r--r-- | lib/private/group/group.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/group/group.php b/lib/private/group/group.php index 9965d938ebb..a2b8a0dcbea 100644 --- a/lib/private/group/group.php +++ b/lib/private/group/group.php @@ -195,7 +195,7 @@ class Group { public function count($search) { $users = false; foreach ($this->backends as $backend) { - if(method_exists($backend, 'countUsersInGroup')) { + if($backend->implementsActions(OC_GROUP_BACKEND_COUNT_USERS)) { if($users === false) { //we could directly add to a bool variable, but this would //be ugly |