From 3b4fca6756025dd0009e0dfed9960a127b3735dc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 29 Jun 2018 00:19:43 +0200 Subject: [PATCH] Fix param dol_invisible_topmenu --- htdocs/main.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 0d724e1ce5c..770d35d1ab3 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); } @@ -1467,11 +1467,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 '
'; + print '
'; // Show menu entries print '
'."\n";