diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index 7bea9085f9a..5265676a5a6 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -373,7 +373,14 @@ function dol_fiche_head($links, $active='0', $title='', $notab=0, $picto='') { if ($links[$i][2] == 'image') { - print ''.$links[$i][1].''."\n"; + if (!empty($links[$i][0])) + { + print ''.$links[$i][1].''."\n"; + } + else + { + print $links[$i][1]."\n"; + } } else { @@ -385,7 +392,7 @@ function dol_fiche_head($links, $active='0', $title='', $notab=0, $picto='') } else { - print ''.$links[$i][1].''."\n"; + print ''.$links[$i][1].''."\n"; } } }