You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP notices "Undefined index: navID in bic_navhelper_get_max_nav_id" are being thrown while crawling the menu tree for finding the maximum navID for items in the navigation menu tree when there are menu items without a navID set.
Not sure whether this stems from incorrect implementations in other extensions (i.e. them not setting a "navID" attribute for a menu item), but it's quite annoying when this happens.
There should be a check for whether the "navID" attribute exists in bic_navhelper_get_max_nav_id within $max_id = max($max_id, $entry['attributes']['navID']);, e.g. $max_id = (isset($entry['attributes']['navID']) ? max($max_id, $entry['attributes']['navID']) : 0);.
The text was updated successfully, but these errors were encountered:
PHP notices "Undefined index: navID in bic_navhelper_get_max_nav_id" are being thrown while crawling the menu tree for finding the maximum navID for items in the navigation menu tree when there are menu items without a navID set.
Not sure whether this stems from incorrect implementations in other extensions (i.e. them not setting a "navID" attribute for a menu item), but it's quite annoying when this happens.
There should be a check for whether the "navID" attribute exists in
bic_navhelper_get_max_nav_id
within$max_id = max($max_id, $entry['attributes']['navID']);
, e.g.$max_id = (isset($entry['attributes']['navID']) ? max($max_id, $entry['attributes']['navID']) : 0);
.The text was updated successfully, but these errors were encountered: