summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2012-03-26 21:48:06 -0700
committerwebchick2012-03-26 21:48:06 -0700
commit9e90c3e741effb272eb6a8b25b45a0e762936616 (patch)
tree593b26229a6a4c06bd9933ba3761082e1ae835ba
parent0f3ad42730ec0acc9b1af454fcc6d6fae77f5503 (diff)
Issue #1338282 by Damien Tournoud, zymsys, JamesOakley, pillarsdotnet, chx: Fixed php notice in menu_link_save().
-rw-r--r--core/includes/menu.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/includes/menu.inc b/core/includes/menu.inc
index 2121619..f2da288 100644
--- a/core/includes/menu.inc
+++ b/core/includes/menu.inc
@@ -3102,10 +3102,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'],