Merge pull request #7373 from atm-arnaud/FIX_time_without_projectid

FIX time.php crashed without project id in param if project isn't linked to a company
This commit is contained in:
Laurent Destailleur 2017-09-14 12:02:16 +02:00 committed by GitHub
commit fd7602382c

View File

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