diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 34e52b3c205..c95a83be335 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -902,8 +902,15 @@ function dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='r
if ($showimage) $morehtmlleft.='
'.$object->show_photos($conf->product->multidir_output[$object->entity],'small',-$maxvisiblephotos,0,0,0,$width,0).'
';
else
{
- $nophoto='/public/theme/common/nophoto.png';
- $morehtmlleft.='';
+ if (!empty($conf->global->PRODUCT_NODISPLAYIFNOPHOTO)) {
+ $nophoto='';
+ $morehtmlleft.='';
+ }
+ else {
+ $nophoto='/public/theme/common/nophoto.png';
+ $morehtmlleft.='';
+ }
+
}
}
else