MINOR notice fix (from r85379)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89192 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-15 22:32:48 +00:00
parent d9ec2b327f
commit 08166d902a

View File

@ -1023,6 +1023,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
// parents and then see which ones the user has permission on
$canEditSiteConfig = SiteConfig::current_site_config()->canEdit($memberID);
foreach($potentiallyInherited as $item) {
if (!isset($groupedByParent[$item->ParentID])) $groupedByParent[$item->ParentID] = array();
if ($item->ParentID) $groupedByParent[$item->ParentID][] = $item->ID;
else $result[$item->ID] = $canEditSiteConfig;
}