Warning: Undefined variable: leaf_items_list in megamenu_theme_menu_tree() (line 289 in /var/www/vhosts/nullepart.qc.ca/subdomains/virtuose/httpdocs/sites/all/modules/megamenu/megamenu.module).

line 289: $twig_data .= $leaf_items_list;

$leaf_items_list is undefine when there is no leaf, so I added $leaf_items_list="" there:

line 242:
        foreach ($branch['below'] as $twig) {
 +      $leaf_items_list="";
          if ($twig['below']){

Thx.

CommentFileSizeAuthor
#4 1061450.patch795 bytesbaldwinlouie

Comments

sea4’s picture

I had the same issue, thank you for the suggestion.

sylv3st3r’s picture

Yeap, I can confirm that above solution works. I've fixed that, but seems like doesn't make it to the -dev.

zetagraph’s picture

Had the same issue and the above tweak fixed it.

baldwinlouie’s picture

Status: Active » Needs review
StatusFileSize
new795 bytes

Here is a patch generated based on the fix.

Anonymous’s picture

Status: Needs review » Fixed

Committed to 7.x-1.x-dev in #25361bf

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.