From 37ef28ed24c665c39315f119677958e81cc8e387 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 25 Mar 2011 01:48:03 +0000 Subject: Fixes #3206 using space so that echo('none') is not passed as value git-svn-id: http://code.elgg.org/elgg/trunk@8833 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/menu/save.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'actions') diff --git a/actions/admin/menu/save.php b/actions/admin/menu/save.php index 3fdce8c45..66ce71082 100644 --- a/actions/admin/menu/save.php +++ b/actions/admin/menu/save.php @@ -9,12 +9,11 @@ // featured menu items $featured_names = get_input('featured_menu_names', array()); $featured_names = array_unique($featured_names); -if (in_array('', $featured_names)) { - unset($featured_names[array_search('', $featured_names)]); +if (in_array(' ', $featured_names)) { + unset($featured_names[array_search(' ', $featured_names)]); } elgg_save_config('site_featured_menu_names', $featured_names); - // custom menu items $custom_menu_titles = get_input('custom_menu_titles', array()); $custom_menu_urls = get_input('custom_menu_urls', array()); -- cgit v1.2.3