diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-14 18:05:01 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-05-14 18:05:01 +0000 |
commit | d90087b201bf7dae2bffb9f9fae6f8f1c31fd49b (patch) | |
tree | b25bfb653257696c7f550653061996101cde82af /views/default | |
parent | f21d7deb6168f4d1beecee02dd1197fc9a2d1d45 (diff) | |
download | elgg-d90087b201bf7dae2bffb9f9fae6f8f1c31fd49b.tar.gz elgg-d90087b201bf7dae2bffb9f9fae6f8f1c31fd49b.tar.bz2 |
fixed php warning when no custom menu items
git-svn-id: http://code.elgg.org/elgg/trunk@9071 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/forms/admin/menu/save.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 = ' '; |