Project

General

Profile

« Previous | Next » 

Revision 5dbc7118

Added by Reid Linnemann almost 3 years ago

Initialize $groups in local_user_get_groups to non-null. Issue #13446

View differences:

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