From a932cf8cdf4a2b35e3c788644344d97ccd7c3492 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 6 Oct 2010 09:07:59 +0000 Subject: [PATCH] Fix: possibility to add an image with no link --- htdocs/lib/functions.lib.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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"; } } }