From 2a4a5b7cee8a0b4c5d1bda73b853d92581e22492 Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Wed, 25 Jan 2012 11:58:05 -0500
Subject: [PATCH] Issue #1338282 by chx, Damien Tournoud, pillarsdotnet: Fix
 php 5.4 notice in menu_link_save().

---
 includes/menu.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/menu.inc b/includes/menu.inc
index 25a87af120ab4e8e3d21b8d0764e3c41de60b3ad..c98aa6bb799c84c38ed2b9fad116646d06ad6972 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -3149,10 +3149,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'],
-- 
1.7.5.4

