Skip to content

Commit

Permalink
Update authgroup.php
Browse files Browse the repository at this point in the history
PHP 8.0+ compatibility
  • Loading branch information
armandostyl authored Dec 21, 2023
1 parent e946059 commit 47f2123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/authgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function loadGroups() {
}

$groups = array_map(function($userinfo) { return $userinfo['grps']; }, $auth->retrieveUsers());
$groups = call_user_func_array('array_merge', $groups);
$groups = call_user_func_array('array_merge', array_values($groups));
$groups = array_merge($groups, $this->loadGroupsFromAcl());

$this->groups = array_unique($groups);
Expand All @@ -64,4 +64,4 @@ public function getGroups($length = NULL, $filter = '') {
return array_slice($groups, 0, $length);
}

}
}

0 comments on commit 47f2123

Please sign in to comment.