The notice only shows when creating, and dealing with books. I know its fixed in MAIN, this applies to 6--1. I didn't trace the code through to find out why $menu_link['menu_name'] is undef, just a quick fix.
Index: token_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token_node.inc,v
retrieving revision 1.5.4.11
diff -r1.5.4.11 token_node.inc
77c77
< $menu = $menus[$menu_link['menu_name']];
---
> $menu = isset($menus[$menu_link['menu_name']]) ? $menus[$menu_link['menu_name']] : '';
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | book_token_notice.patch | 797 bytes | beginner |
Comments
Comment #1
beginner commentedConfirmed:
Undefined index: book-toc-3 in modules/token-6--1/token_node.inc on line 77.
Comment #2
beginner commentedComment #3
gregglesThanks - fixed! http://drupal.org/cvs?commit=195346