diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-03-26 21:48:45 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-03-26 21:48:45 -0700 |
commit | c46186fb69e8c70a07d5f3ce7a0d3ddd19902bf0 (patch) | |
tree | 78fddeebeaf7520796e9f01be8810e6adf9b12bc /includes/menu.inc | |
parent | 4fb8e143a321f0fd689db87162cecfae029b0f24 (diff) | |
download | brdo-c46186fb69e8c70a07d5f3ce7a0d3ddd19902bf0.tar.gz brdo-c46186fb69e8c70a07d5f3ce7a0d3ddd19902bf0.tar.bz2 |
Issue #1338282 by Damien Tournoud, zymsys, JamesOakley, pillarsdotnet, chx: Fixed php notice in menu_link_save().
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index fef40bb73..15978a32a 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -3141,10 +3141,10 @@ function menu_link_save(&$item, $existing_item = array(), $parent_candidates = a } // If every value in $existing_item is the same in the $item, there is no // reason to run the update queries or clear the caches. We use - // array_intersect_assoc() with the $item as the first parameter because + // array_intersect_key() with the $item as the first parameter because // $item may have additional keys left over from building a router entry. // The intersect removes the extra keys, allowing a meaningful comparison. - if (!$existing_item || (array_intersect_assoc($item, $existing_item)) != $existing_item) { + if (!$existing_item || (array_intersect_key($item, $existing_item)) != $existing_item) { db_update('menu_links') ->fields(array( 'menu_name' => $item['menu_name'], |