MINOR: Fixed notice-level error

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@84148 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-08-11 04:46:47 +00:00
parent 5f6bee22ba
commit bdccbdfbcf

View File

@ -881,6 +881,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
// Default result: nothing editable
$result = array_fill_keys($ids, false);
if($ids) {
// Look in the cache for values
@ -982,6 +983,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
// Look in the cache for values
if($useCached && isset(self::$cache_permissions['delete'])) {
$result = array_fill_keys($ids, false);
$cachedValues = array_intersect_key(self::$cache_permissions['delete'], $result);
// If we can't find everything in the cache, then look up the remainder separately