Permalink
Browse files

Update html.php

countMenuChildren can't return anything but zero, because the query is never set. This change sets it.
  • Loading branch information...
1 parent d0ec462 commit 64b024066e88ee6ee55bc96e2e02d34318d30d5b @Paladin Paladin committed Mar 6, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 libraries/joomla/document/html/html.php
@@ -542,6 +542,7 @@ public function countMenuChildren()
$query->from('#__menu');
$query->where('parent_id = ' . $active->id);
$query->where('published = 1');
+ $dbo->setQuery($query);
$children = $dbo->loadResult();
}
else

0 comments on commit 64b0240

Please sign in to comment.