diff --git a/code/CMSMain.php b/code/CMSMain.php index 51dac639..d4c098e2 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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; } }