summaryrefslogtreecommitdiffstats
path: root/lib/private/group/group.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-08 12:31:11 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-04-08 12:31:11 +0200
commit5f8d9b3a4e259d1f9c02b482bab37321c0d3b3dc (patch)
tree943228a5678c3f8a8290baacfd8d23b4dd6489e2 /lib/private/group/group.php
parent96cb75f5cf8c14f389213e1745cc3a98f8d1cbd4 (diff)
downloadnextcloud-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.php2
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