mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
8c3a21baa4
commit
dd64cc06b9
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user