Revision 5dbc7118
Added by Reid Linnemann almost 3 years ago
src/etc/inc/auth.inc | ||
---|---|---|
835 | 835 |
|
836 | 836 |
function local_user_get_groups($user, $all = false) { |
837 | 837 |
$sysgroups = config_get_path('system/group', []); |
838 |
$groups = []; |
|
838 | 839 |
if(empty($sysgroups)) { |
839 |
return [];
|
|
840 |
return $groups;
|
|
840 | 841 |
} |
841 | 842 |
|
842 | 843 |
foreach ($sysgroups as $group) { |
Also available in: Unified diff
Initialize $groups in local_user_get_groups to non-null. Issue #13446