aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/forms/admin/menu/save.php2
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 = ' ';