show main menu page even if no menus exist

This commit is contained in:
friendica 2013-08-14 21:24:40 -07:00
parent 00c9995766
commit efb730cedc

View File

@ -45,7 +45,7 @@ function menu_content(&$a) {
if(argc() == 1) {
// list menus
$x = menu_list(local_user());
if($x) {
$o = replace_macros(get_markup_template('menulist.tpl'),array(
'$title' => t('Manage Menus'),
'$menus' => $x,
@ -57,7 +57,7 @@ function menu_content(&$a) {
'$hintcontent' => t('Edit menu contents'),
'$hintedit' => t('Edit this menu')
));
}
return $o;