Update viewcat.php

This commit is contained in:
Laurent Destailleur 2021-05-17 09:54:04 +02:00 committed by GitHub
parent 79b51baa3d
commit f95f0748e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -768,12 +768,11 @@ if ($type == Categorie::TYPE_CONTACT) {
break;
}
$objsoc->fetch($contact->socid);
print "\t".'<tr class="oddeven">'."\n";
print '<td class="nowrap" valign="top">';
print $contact->getNomUrl(1, 'category');
if ($objsoc->id > 0) {
if ($contact->socid > 0) {
$objsoc->fetch($contact->socid);
print ' - ';
print $objsoc->getNomUrl(1, 'contact');
}