mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed undefined variable in SiteTree::can_edit_multiple() (broken in r83442)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102516 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2173567de6
commit
891de73b31
@ -1098,6 +1098,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…
x
Reference in New Issue
Block a user