Skip to content

Commit

Permalink
dereference menuitems
Browse files Browse the repository at this point in the history
  • Loading branch information
mobilejoomla committed Aug 7, 2011
1 parent 76f6a67 commit 82cf219
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/modules/mod_mj_menu/helper.php
Expand Up @@ -88,6 +88,9 @@ function prepareMenu(&$menu, $exclude_menu_ids, $params)
$sitemenu =& JSite::getMenu();
$router =& JSite::getRouter();

foreach($menu as $i=>$item)
$menu[$i] = clone($item);

foreach($menu as $i=>$item)
{
$allow = $is_joomla15 ? $sitemenu->authorize($item->id, $aid) : $sitemenu->authorise($item->id);
Expand Down

0 comments on commit 82cf219

Please sign in to comment.