From 8cff0222cd9aba2d9bc1d652ec9337b4bfce7b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 15 Nov 2020 23:58:35 +0100 Subject: [PATCH] Update commondocgenerator.class.php --- htdocs/core/class/commondocgenerator.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index 5dfdddbaecc..607982ee062 100644 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -120,7 +120,11 @@ abstract class CommonDocGenerator { global $conf, $extrafields; - $logotouse = $conf->adherent->dir_output.'/'.$member->id.'/photos/'.$member->photo; + if ($member->photo) { + $logotouse = $conf->adherent->dir_output.'/'.$member->id.'/photos/'.$member->photo; + } else { + $logotouse = DOL_DOCUMENT_ROOT . '/public/theme/common/nophoto.png'; + } $array_member = array( 'mymember_lastname' => $member->lastname,