Browse files

Merge pull request #792 from katalystsol/staging

Fix bug in countMenuChildren
  • Loading branch information...
2 parents f26a989 + 14169c6 commit 691d039a5e19352f553b05605342016701486dbf @eddieajau eddieajau committed Jan 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/document/html/html.php
View
2 libraries/joomla/document/html/html.php
@@ -488,7 +488,7 @@ public function countMenuChildren()
$active = $menu->getActive();
if ($active)
{
- $query->getQuery(true);
+ $query = $dbo->getQuery(true);
$query->select('COUNT(*)');
$query->from('#__menu');
$query->where('parent_id = ' . $active->id);

0 comments on commit 691d039

Please sign in to comment.