diff --git a/htdocs/projet/tasks/document.php b/htdocs/projet/tasks/document.php index b8ff9a175ab..827ac810695 100644 --- a/htdocs/projet/tasks/document.php +++ b/htdocs/projet/tasks/document.php @@ -256,9 +256,11 @@ if ($object->id > 0) $morehtmlref.='
'; // Third party - $morehtmlref.=$langs->trans("ThirdParty").': '; - $morehtmlref.=$projectstatic->thirdparty->getNomUrl(1); - $morehtmlref.=''; + if ($projectstatic->thirdparty->id > 0) { + $morehtmlref .= $langs->trans("ThirdParty") . ': '; + $morehtmlref .= $projectstatic->thirdparty->getNomUrl(1); + $morehtmlref .= ''; + } } dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, $param);