From 2a7e79685a609344bd8a09612727ea691f36c279 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 10 Feb 2011 20:28:13 +0000 Subject: fixed access issue on menu name git-svn-id: http://code.elgg.org/elgg/trunk@8092 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/navigation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/navigation.php b/engine/lib/navigation.php index d11262933..1d3098938 100644 --- a/engine/lib/navigation.php +++ b/engine/lib/navigation.php @@ -62,7 +62,7 @@ function elgg_unregister_menu_item($menu_name, $item_name) { } foreach ($CONFIG->menus[$menu_name] as $index => $menu_object) { - if ($menu_object->name == $item_name) { + if ($menu_object->getName() == $item_name) { unset($CONFIG->menus[$menu_name][$index]); return true; } -- cgit v1.2.3