mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Removed warning in group admin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49887 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3e2fdf49f0
commit
21c8752e2c
@ -191,7 +191,7 @@ class Group extends DataObject {
|
|||||||
$children = $this->extInstance('Hierarchy')->AllChildrenIncludingDeleted();
|
$children = $this->extInstance('Hierarchy')->AllChildrenIncludingDeleted();
|
||||||
$filteredChildren = new DataObjectSet();
|
$filteredChildren = new DataObjectSet();
|
||||||
|
|
||||||
foreach($children as $child) {
|
if($children) foreach($children as $child) {
|
||||||
if($child->canEdit()) $filteredChildren->push($child);
|
if($child->canEdit()) $filteredChildren->push($child);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user