Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2010 at 12:56 UTC
Updated:
23 Jan 2011 at 23:20 UTC
admin/structure/menu/settings
There is a typo in menu_configure() causing a warning:
Notice: Undefined variable: main_options in menu_configure() (line 702 of /modules/menu/menu.admin.inc).
It also causes the name of the menu not to be displayed. Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| menu.admin_.inc-typo.patch | 1.32 KB | pfrenssen |
Comments
Comment #1
mustanggb commentedInstead of:
Shouldn't it be:
Comment #2
pfrenssenNo, $main_options does not exist in this function.
The description wants to print out the name of the menu that is currently used for the Main Links. This is stored in $menu_options[$main].
Comment #3
mustanggb commentedIt did a few days ago :P
I see in the latest CVS it has disappeared though
Comment #4
Jeff Burnz commentedFixes the problem for me.
Comment #5
attiks commentedRan into the same problem, after applying patch, notice is gone ;p
Comment #6
tom_o_t commentedmenu.admin_.inc-typo.patch queued for re-testing.
Comment #8
pfrenssenThis has been fixed in another issue: #937850: PHP notice in menu settings page.