I'm including nice menus with a line like this in the page.tpl.php

print theme('nice_menus_primary_links');

However, the menu is empty for anonymous users and in these cases it was showing an error:

Undefined index: content in theme_nice_menus_primary_links() (line 554 of
nice_menus/nice_menus.module)

The attached patch corrects this.

Comments

amateescu’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.2 KB

Looks good to me. I also added an empty 'subject' key in the attached patch and moved the declaration to the beginning of the function for code clarity.

vordude’s picture

Status: Reviewed & tested by the community » Fixed

good catch fixed with 8ab48cb8c3123

Status: Fixed » Closed (fixed)

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