ZF-10146: Zend_Navigation_Page xml option "visible" only works with integers not booleans
When using a navigation xml config file the visible-option is not working as expected as it is not accepting booleans (true/false) as values. This is accepted:
This is ignored:
"false" value is accepted in array configs to this is a little bit confusing and I do not see a reason for forcing integer values as it is actually a flag.
A possible quick fix would be in Zend/Navigation/Page.php on line 731:
and changing it to:
but I am not sure if this is the right place to fix this. The problem here is that the string "false" is casted to boolean true.