From a2c9d5bd4a3cb548bf7014896f25438b60cd1d6d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 14 Jan 2015 19:10:21 +0100 Subject: [PATCH] Fixed balance of td introduced by MAX_TAB option. --- htdocs/core/lib/functions.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 511cee34d62..d83d1e8b1a5 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -659,7 +659,7 @@ function dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto */ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto='', $pictoisfullpath=0) { - global $conf; + global $conf,$langs; $out="\n".'
'."\n"; @@ -749,8 +749,6 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p $displaytab=$i; } - $out.="
\n"; - if ($displaytab > $limittoshow) { $out.='
'; @@ -764,6 +762,8 @@ function dol_get_fiche_head($links=array(), $active='0', $title='', $notab=0, $p $out.=""; } + $out.="
\n"; + if (! $notab) $out.="\n".'
'."\n"; return $out;