Merge pull request #7142 from atm-alexis/FIX_task_view_without_thirdparty

FIX empty thirdparty getNomUrl() call without thirdparty
This commit is contained in:
Laurent Destailleur 2017-07-13 14:31:08 +02:00 committed by GitHub
commit dec1ae863b

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>';
}