From efb730cedcc82fadcb8474d44f8820d92b0187e6 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 14 Aug 2013 21:24:40 -0700 Subject: show main menu page even if no menus exist --- mod/menu.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/menu.php b/mod/menu.php index 910fc389b..c3302544e 100644 --- a/mod/menu.php +++ b/mod/menu.php @@ -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; -- cgit v1.2.3