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:
Sam Minnee 2008-02-20 09:40:13 +00:00
parent 3e2fdf49f0
commit 21c8752e2c

View File

@ -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);
} }