From c148f82452139ced15104efbeeb784ad98830a74 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 6 Apr 2015 19:31:25 +0200 Subject: [PATCH] Fix warning --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index e8d0cc3f254..5efbc507db9 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -724,7 +724,7 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p // Show tabs $bactive=false; // if =0 we don't use the feature - $limittoshow=($conf->global->MAIN_MAXTABS_IN_CARD?$conf->global->MAIN_MAXTABS_IN_CARD:99); + $limittoshow=(empty($conf->global->MAIN_MAXTABS_IN_CARD)?99:$conf->global->MAIN_MAXTABS_IN_CARD); $displaytab=0; for ($i = 0 ; $i <= $maxkey ; $i++)