From 4d3e798f99af2c4464c3196e14e7c02dd71aab29 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 4 Aug 2012 14:18:02 +0200 Subject: [PATCH] Fix: remove test in $pictoisfullpath and add test in $options --- htdocs/core/lib/functions.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index d79f1f1a845..c61c16e108f 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1636,7 +1636,7 @@ function img_picto($alt, $picto, $options = '', $pictoisfullpath = false) global $conf; // Define fullpathpicto to use into src - if (! empty($pictoisfullpath)) { + if ($pictoisfullpath) { // Clean parameters if (! preg_match('/(\.png|\.gif)$/i',$picto)) $picto .= '.png'; @@ -1665,7 +1665,7 @@ function img_picto($alt, $picto, $options = '', $pictoisfullpath = false) $fullpathpicto = $url.'/'.$path.'/img/'.$picto; } - return ''.dol_escape_htmltag($alt).''; + return ''.dol_escape_htmltag($alt).''; } /**