From 08166d902a986c2830c4a3c5d2d7d02da6786430 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 15 Oct 2009 22:32:48 +0000 Subject: [PATCH] MINOR notice fix (from r85379) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89192 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/SiteTree.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 3088b72c9..71f434c18 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -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; }