Update commondocgenerator.class.php

This commit is contained in:
Frédéric FRANCE 2020-11-15 23:58:35 +01:00 committed by GitHub
parent 35653bb855
commit 8cff0222cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,