]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed php warning when no custom menu items
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 14 May 2011 18:05:01 +0000 (18:05 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 14 May 2011 18:05:01 +0000 (18:05 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9071 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/forms/admin/menu/save.php

index 91129c8810112e4f9e9bf0a0ab10ca945f95e3fb..92a0784df4de28fa74ef5b5c95ff634667b8bc52 100644 (file)
@@ -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 = ' ';