From 84194b38e368beec5acecee825d4ee3d01bf53a6 Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 12 Apr 2012 00:35:50 -0700 Subject: Issue #1516030 by valthebald, rdickert: Fixed Change parenthesis in menu_link_save() to express intended order of operations. --- includes/menu.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/menu.inc') diff --git a/includes/menu.inc b/includes/menu.inc index 5c294c111..eec342f69 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -3147,7 +3147,7 @@ function menu_link_save(&$item, $existing_item = array(), $parent_candidates = a // 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_key($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'], -- cgit v1.2.3