Fix: affichait un lien si aucun contact

This commit is contained in:
Regis Houssin 2006-05-26 12:56:40 +00:00
parent f537543102
commit 1f04b53827

View File

@ -487,7 +487,7 @@ if ($_GET["id"])
print '<td>'.$langs->trans("Contact").'</td>';
print '<td>';
if ($act->contact->id)
if ($act->contact->id > 0)
{
print '<a href="'.DOL_URL_ROOT.'/contact/fiche.php?id='.$act->contact->id.'">'.img_object($langs->trans("ShowContact"),'contact').' '.$act->contact->fullname.'</a>';
}