FIX empty object

This commit is contained in:
Laurent Destailleur 2017-07-13 14:32:49 +02:00
parent bea3ced763
commit 74e29a3fdb

View File

@ -459,7 +459,9 @@ if ($id > 0 || ! empty($ref))
// Third party
$morehtmlref.=$langs->trans("ThirdParty").': ';
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
if (!empty($projectstatic->thirdparty)) {
$morehtmlref.=$projectstatic->thirdparty->getNomUrl(1);
}
$morehtmlref.='</div>';
}