diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-04-08 14:31:11 +0400 |
---|---|---|
committer | Simon Vocella <voxsim@gmail.com> | 2014-09-25 00:36:45 +0400 |
commit | a84250c6d1a9ef9ce0257acdc56dbc3b60ebcb53 (patch) | |
tree | 56dba082fa64ea14c61daa1e3fa18ea7df917f86 /lib | |
parent | 79e6b601999d39523e884d1a735f8da913536054 (diff) |
ask implementsAction instead of checking method_exists for easier testing
Diffstat (limited to 'lib')
-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 9689ecb08e5..7593bb68d1a 100644 --- a/lib/private/group/group.php +++ b/lib/private/group/group.php @@ -189,7 +189,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 |