diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index bfef30294fe..826f83356c4 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -1059,7 +1059,7 @@ if (! function_exists("llxHeader")) print '
' . "\n"; // top menu and left menu area - if (empty($conf->dol_hide_topmenu)) + if (empty($conf->dol_hide_topmenu) || GETPOST('dol_invisible_topmenu','int')) { top_menu($head, $title, $target, $disablejs, $disablehead, $arrayofjs, $arrayofcss, $morequerystring, $help_url); } @@ -1480,11 +1480,11 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a /* * Top menu */ - if (empty($conf->dol_hide_topmenu) && (! defined('NOREQUIREMENU') || ! constant('NOREQUIREMENU'))) + if ((empty($conf->dol_hide_topmenu) || GETPOST('dol_invisible_topmenu','int')) && (! defined('NOREQUIREMENU') || ! constant('NOREQUIREMENU'))) { print "\n".''."\n"; - print '