diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 1d3899ade61..836fe0b4fed 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -102,7 +102,9 @@ function dolibarr_fiche_head($links, $active=0, $title='') if (strlen($title)) { - print ''.$title.''; + $limittitle=30; + if (strlen($title) > $limittitle) print ''.substr($title,0,$limittitle).'...'; + else print ''.$title.''; } for ($i = 0 ; $i < sizeof($links) ; $i++)