FIX empty thirdparty getNomUrl() call without thirdparty

This commit is contained in:
Alexis Algoud 2017-07-11 23:06:33 +02:00
parent d34146b127
commit f1d451eb12

View File

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