mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
43ad2ad6b5
commit
49e7ca8e7c
@ -954,6 +954,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
* @param useCached Return values from the permission cache if they exist.
|
||||
*/
|
||||
static function can_delete_multiple($ids, $memberID, $useCached = true) {
|
||||
$deletable = array();
|
||||
|
||||
// Look in the cache for values
|
||||
if($useCached && isset(self::$cache_permissions['delete'])) {
|
||||
$cachedValues = array_intersect_key(self::$cache_permissions['delete'], $result);
|
||||
|
Loading…
Reference in New Issue
Block a user