aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-25 01:48:03 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-25 01:48:03 +0000
commit37ef28ed24c665c39315f119677958e81cc8e387 (patch)
treef13e4bf3d69653776c0c9ed962b93d75c9147b40 /actions/admin
parent2f87171fb8ccdd244b496fc31ff882757bbc6902 (diff)
downloadelgg-37ef28ed24c665c39315f119677958e81cc8e387.tar.gz
elgg-37ef28ed24c665c39315f119677958e81cc8e387.tar.bz2
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
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/menu/save.php5
1 files changed, 2 insertions, 3 deletions
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());