diff --git a/menu_node.module b/menu_node.module index bb2a847..d171bd2 100644 --- a/menu_node.module +++ b/menu_node.module @@ -27,7 +27,7 @@ function menu_node_menu_link_insert($link) { function menu_node_menu_link_update($link) { if ($link['router_path'] != 'node/%') { // new link is NOT attached to a node - if ($node = menu_node_get_node($link['mlid'])) { + if (menu_node_get_node($link['mlid'])) { // old link WAS attached to a node: menu_node record need to be deleted: menu_node_record_delete_by_link($link); }