diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-07 05:46:31 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-07 05:46:31 +0000 |
commit | 2ec74afec55384c9c7adb906a616d4fc88112ae7 (patch) | |
tree | 0c9595053e815bb77a1b160129b2f319fada085c /modules/menu/menu.module | |
parent | bfaba123d1e55761d0a3db9b91022f4be27eb72c (diff) | |
download | brdo-2ec74afec55384c9c7adb906a616d4fc88112ae7.tar.gz brdo-2ec74afec55384c9c7adb906a616d4fc88112ae7.tar.bz2 |
#48178 by kkaefer. Only save the menu item expanded attribute if it is set.
Diffstat (limited to 'modules/menu/menu.module')
-rw-r--r-- | modules/menu/menu.module | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 403bb0ff2..ef733d775 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -522,11 +522,13 @@ function menu_overview() { * @return mid */ function menu_edit_item_save($edit) { - if ($edit['expanded']) { - $edit['type'] |= MENU_EXPANDED; - } - else { - $edit['type'] &= ~MENU_EXPANDED; + if (isset($edit['expanded'])) { + if ($edit['expanded']) { + $edit['type'] |= MENU_EXPANDED; + } + else { + $edit['type'] &= ~MENU_EXPANDED; + } } $edit['type'] = $edit['type'] | MENU_MODIFIED_BY_ADMIN; |