Just checking if $tree[$key]['link']['mlid'] is set before checking its parent's will avoid a php notice.

CommentFileSizeAuthor
menu_block_menu_prune_check_mlid.patch698 bytesyareckon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

GiorgosK’s picture

Title: [PATCH] check if mlid set in menu_tree_prune_tree » fixing notice - [PATCH] check if mlid set in menu_tree_prune_tree

it would be nice to know what notice this error produces
this ways it would be easier for other people to find in issue queue

JohnAlbin’s picture

Version: 7.x-2.3 » 7.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

Yep. I need to reproduce the bug before I'll apply a fix for it.

Dave Reid’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response in two years, closing.