elofgren: BUGFIX: Fix error: Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to

enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. 
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42069 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 14:22:26 +00:00
parent 8c3a21baa4
commit dd64cc06b9

View File

@ -312,7 +312,7 @@ class Permission extends DataObject {
foreach($declared as $perm => $value) {
if($value instanceof Permission_Group) {
$list[] = $value->getName();
self::traverse_declared_permissions($value->getPermissions(), &$list);
self::traverse_declared_permissions($value->getPermissions(), $list);
} else $list[$perm] = $value;
}
}