MINOR: added empty array to prevent notice level error about can_delete_multiple when accessing the cms

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@83451 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2009-08-01 23:54:36 +00:00
parent 43ad2ad6b5
commit 49e7ca8e7c

View File

@ -954,6 +954,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
* @param useCached Return values from the permission cache if they exist. * @param useCached Return values from the permission cache if they exist.
*/ */
static function can_delete_multiple($ids, $memberID, $useCached = true) { static function can_delete_multiple($ids, $memberID, $useCached = true) {
$deletable = array();
// Look in the cache for values // Look in the cache for values
if($useCached && isset(self::$cache_permissions['delete'])) { if($useCached && isset(self::$cache_permissions['delete'])) {
$cachedValues = array_intersect_key(self::$cache_permissions['delete'], $result); $cachedValues = array_intersect_key(self::$cache_permissions['delete'], $result);