diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 24a87c15032..625cbbee4b7 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1209,7 +1209,7 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab } if ($popuptab) $outmore.=''; - if ($displaytab > $limittoshow) + if ($popuptab) // If there is some tabs not shown { $left=($langs->trans("DIRECTION") == 'rtl'?'right':'left'); $right=($langs->trans("DIRECTION") == 'rtl'?'left':'right');