diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 1633ac2f1..74db7243b 100755 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1098,6 +1098,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);