From 2d4ea679ccfcf36efa99362ec2cc38e09b3b01bb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 3 Oct 2024 12:43:21 +0200 Subject: [PATCH] Debug v21 --- htdocs/core/lib/functions.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index ccf8895635c..adb958cdf7b 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2596,7 +2596,7 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab // Show tabs // if =0 we don't use the feature if (empty($limittoshow)) { - $limittoshow = (!getDolGlobalString('MAIN_MAXTABS_IN_CARD') ? 99 : $conf->global->MAIN_MAXTABS_IN_CARD); + $limittoshow = getDolGlobalInt('MAIN_MAXTABS_IN_CARD', 99); } if (!empty($conf->dol_optimize_smallscreen)) { $limittoshow = 2; @@ -2641,7 +2641,7 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab $out .= ''; } - if ($displaytab == 0) { + if ($displaytab == 0 && $picto) { $out .= img_picto($title, $picto, '', $pictoisfullpath, 0, 0, '', 'imgTabTitle paddingright marginrightonlyshort'); }