From d90087b201bf7dae2bffb9f9fae6f8f1c31fd49b Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 14 May 2011 18:05:01 +0000 Subject: fixed php warning when no custom menu items git-svn-id: http://code.elgg.org/elgg/trunk@9071 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/forms/admin/menu/save.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/default/forms/admin') diff --git a/views/default/forms/admin/menu/save.php b/views/default/forms/admin/menu/save.php index 91129c881..92a0784df 100644 --- a/views/default/forms/admin/menu/save.php +++ b/views/default/forms/admin/menu/save.php @@ -33,7 +33,7 @@ echo elgg_view('output/longtext', array( )); for ($i=0; $i<$num_featured_items; $i++) { - if (array_key_exists($i, $featured_menu_names)) { + if ($featured_menu_names && array_key_exists($i, $featured_menu_names)) { $current_value = $featured_menu_names[$i]; } else { $current_value = ' '; -- cgit v1.2.3