Update commondocgenerator.class.php

This commit is contained in:
Laurent Destailleur 2020-11-18 12:04:41 +01:00 committed by GitHub
parent 8cff0222cd
commit 889a5d0be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ abstract class CommonDocGenerator
global $conf, $extrafields;
if ($member->photo) {
$logotouse = $conf->adherent->dir_output.'/'.$member->id.'/photos/'.$member->photo;
$logotouse = $conf->adherent->dir_output.'/'.get_exdir(0, 0, 0, 1, $member, 'user').'/photos/'.$member->photo;
} else {
$logotouse = DOL_DOCUMENT_ROOT . '/public/theme/common/nophoto.png';
}