mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Ensure that CMSMainMarkingFilter::mark() always passes an integer into array_key_exists() or it will break
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77832 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ecbffeeb6d
commit
a1b04f1018
@ -1346,8 +1346,8 @@ class CMSMainMarkingFilter {
|
||||
|
||||
function mark($node) {
|
||||
$id = $node->ID;
|
||||
if (array_key_exists($id, $this->expanded)) $node->markOpened();
|
||||
return array_key_exists($id, $this->ids) ? $this->ids[$id] : false;
|
||||
if(array_key_exists((int) $id, $this->expanded)) $node->markOpened();
|
||||
return array_key_exists((int) $id, $this->ids) ? $this->ids[$id] : false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user