After updating to the latest stable version of nice menus, I now get PHP notices on my site:

Notice: Undefined index: respect_expanded in theme_nice_menus_build() (line 540 of drupal-7/sites/all/modules/contrib/nice_menus/nice_menus.module).

Clearing the caches does make the error disappear, but I thought it might not be too hard to put an array_key_exists() call in there to prevent this PHP notice.

Comments

xiukun.zhou’s picture

Status: Active » Postponed (maintainer needs more info)

Hi jenlampton, Thanks very much.

i think this is drupal theme of cache, if you use array_key_exists check the array. nice_menus should not work. so, should not do unnecessary things

xiukun.zhou’s picture

Status: Postponed (maintainer needs more info) » Fixed
jenlampton’s picture

Status: Fixed » Active

If you fixed this issue can you post a patch here, or at least show the code that you added to resolve this problem?

xiukun.zhou’s picture

Status: Active » Fixed

Hi jenlampton.
Thanks very much

commit: 2ee7057

Status: Fixed » Closed (fixed)

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