Archived
* 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:
@@ -3,6 +3,10 @@
|
|||||||
Version 1.2 ()
|
Version 1.2 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* 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)
|
||||||
|
|
||||||
* Fix redundant space when inserting links through the non-WYSIWYG
|
* Fix redundant space when inserting links through the non-WYSIWYG
|
||||||
editor panel. Fix "null" insertion. Thanks to Alp Uckan.
|
editor panel. Fix "null" insertion. Thanks to Alp Uckan.
|
||||||
|
|
||||||
|
|||||||
@@ -1238,14 +1238,15 @@ function &serendipity_getGroups($authorid, $sequence = false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($sequence) {
|
if ($sequence) {
|
||||||
$_groups = $groups;
|
$rgroups = array();
|
||||||
$groups = array();
|
foreach($groups AS $grouprow) {
|
||||||
foreach($_groups AS $grouprow) {
|
$rgroups[] = $grouprow['confkey'];
|
||||||
$groups[] = $grouprow['confkey'];
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$rgroups =& $groups;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $groups;
|
return $rgroups;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user