Skip to content
Snippets Groups Projects
Commit 5f8d9b3a authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

ask implementsAction instead of checking method_exists for easier testing

parent 96cb75f5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment