mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-05 01:01:17 +02:00
MINOR Fixed undefined variable in SiteTree::can_edit_multiple() (broken in r83442) (from r102516)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@102518 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
53f2f7a873
commit
551d8d9af3
@ -1134,6 +1134,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
static function can_delete_multiple($ids, $memberID, $useCached = true) {
|
static function can_delete_multiple($ids, $memberID, $useCached = true) {
|
||||||
$deletable = array();
|
$deletable = array();
|
||||||
|
|
||||||
|
$result = array_fill_keys($ids, false);
|
||||||
|
|
||||||
// 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user