* Fix bug in conjunction with PHP 5.2.1 changed variable-by-reference
handling that could result in no groups being listed for author
accounts (garvinhicking)
This commit is contained in:
@@ -1238,14 +1238,15 @@ function &serendipity_getGroups($authorid, $sequence = false) {
|
||||
}
|
||||
|
||||
if ($sequence) {
|
||||
$_groups = $groups;
|
||||
$groups = array();
|
||||
foreach($_groups AS $grouprow) {
|
||||
$groups[] = $grouprow['confkey'];
|
||||
$rgroups = array();
|
||||
foreach($groups AS $grouprow) {
|
||||
$rgroups[] = $grouprow['confkey'];
|
||||
}
|
||||
} else {
|
||||
$rgroups =& $groups;
|
||||
}
|
||||
|
||||
return $groups;
|
||||
return $rgroups;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user