Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2012.1, 4.6.0
-
None
Description
when a node has no child items, the ezjscServerFunctionsNode::subTree() method, called via ezjscore to load the list of children, gives back some funny data:
total_count = 0, count = 1
this happens because 'count' => count( $nodeArray ), and $nodeArray = false; instead of being $nodeArray = array();, and of course in php, count(false)===1