diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 2677a536a..1589f6f6a 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1134,6 +1134,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid static function can_delete_multiple($ids, $memberID, $useCached = true) { $deletable = array(); + $result = array_fill_keys($ids, false); + // Look in the cache for values if($useCached && isset(self::$cache_permissions['delete'])) { $cachedValues = array_intersect_key(self::$cache_permissions['delete'], $result);