joomla/joomla-cms — pull request #923 by Paladin (2013-03-30 15:32:39+00:00)
Title: Fixed bug where countMenuChildren returned zero

Fixes this error in the 2.5.x branch as well.

(And this time I mean it.)