Merge pull request #19104 from frederic34/patch-4

fix warning
This commit is contained in:
Laurent Destailleur 2021-10-22 18:47:54 +02:00 committed by GitHub
commit ac661c67b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,7 @@ if ($projectid > 0) {
// Title
$morehtmlref .= $project->title;
// Thirdparty
if ($project->thirdparty->id > 0) {
if (isset($project->thirdparty->id) && $project->thirdparty->id > 0) {
$morehtmlref .= '<br>'.$langs->trans('ThirdParty').' : '.$project->thirdparty->getNomUrl(1, 'project');
}
$morehtmlref .= '</div>';