I'm testing a code from the answer by @digitalsteez on this question:
I've tested it onto two Magento instance, one has no problems but on the other I'm facing a problem with recursion:
"children" => getChildCategories($child)
output me an
"Invalid argument supplied for
How can I solve this?
Thank You in advice.