From 5f8d9b3a4e259d1f9c02b482bab37321c0d3b3dc Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 8 Apr 2014 12:31:11 +0200 Subject: [PATCH] ask implementsAction instead of checking method_exists for easier testing --- lib/private/group/group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/group/group.php b/lib/private/group/group.php index 9965d938eb..a2b8a0dcbe 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