diff --git a/htdocs/adherents/subscription/card.php b/htdocs/adherents/subscription/card.php
index 31cf3020765..1b6e5813774 100644
--- a/htdocs/adherents/subscription/card.php
+++ b/htdocs/adherents/subscription/card.php
@@ -313,8 +313,9 @@ if ($rowid && $action != 'edit')
print '
';
print '| '.$langs->trans("Type").' | ';
print '';
- if (! empty($object->fk_type) ) {
- $adht->fetch($object->fk_type);
+ if ($object->fk_type > 0 || $adh->typeid > 0) {
+ $typeid = ($object->fk_type > 0 ? $object->fk_type : $adh->typeid);
+ $adht->fetch($typeid);
print $adht->getNomUrl(1);
} else {
print $langs->trans("NoType");
|