Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
xiukun.zhou CreditAttribution: xiukun.zhou commentedHi 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 thingsComment #2
xiukun.zhou CreditAttribution: xiukun.zhou commentedComment #3
jenlamptonIf you fixed this issue can you post a patch here, or at least show the code that you added to resolve this problem?
Comment #4
xiukun.zhou CreditAttribution: xiukun.zhou commentedHi jenlampton.
Thanks very much
commit: 2ee7057