From 21c8752e2c82be7ff67ae35438ef8c4e55e54e71 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 20 Feb 2008 09:40:13 +0000 Subject: [PATCH] Removed warning in group admin git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49887 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/Group.php b/security/Group.php index 98aa0e7a5..d8db38588 100644 --- a/security/Group.php +++ b/security/Group.php @@ -191,7 +191,7 @@ class Group extends DataObject { $children = $this->extInstance('Hierarchy')->AllChildrenIncludingDeleted(); $filteredChildren = new DataObjectSet(); - foreach($children as $child) { + if($children) foreach($children as $child) { if($child->canEdit()) $filteredChildren->push($child); }