From f95f0748e3acca203bb92faafc44c8207580f4ca Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 May 2021 09:54:04 +0200 Subject: [PATCH] Update viewcat.php --- htdocs/categories/viewcat.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index b62bc3bcb0f..eeca990ef28 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -768,12 +768,11 @@ if ($type == Categorie::TYPE_CONTACT) { break; } - $objsoc->fetch($contact->socid); - print "\t".''."\n"; print ''; print $contact->getNomUrl(1, 'category'); - if ($objsoc->id > 0) { + if ($contact->socid > 0) { + $objsoc->fetch($contact->socid); print ' - '; print $objsoc->getNomUrl(1, 'contact'); }