diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index b632f520951..ca247158afa 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -415,7 +415,7 @@ if ($socid > 0) print ''.$langs->trans("LinkedToDolibarrMember").''; print ''; $adh=new Adherent($db); - $result=$adh->fetch('','',$soc->id); + $result=$adh->fetch('','',$objsoc->id); if ($result > 0) { $adh->ref=$adh->getFullName($langs); diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php index 08eb61f56b0..de49be12526 100644 --- a/htdocs/comm/prospect/fiche.php +++ b/htdocs/comm/prospect/fiche.php @@ -183,7 +183,7 @@ if ($socid > 0) print ''.$langs->trans("LinkedToDolibarrMember").''; print ''; $adh=new Adherent($db); - $result=$adh->fetch('','',$soc->id); + $result=$adh->fetch('','',$societe->id); if ($result > 0) { $adh->ref=$adh->getFullName($langs); diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index fa67713def1..dadf77ae459 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -186,7 +186,7 @@ if ( $societe->fetch($socid) ) print ''.$langs->trans("LinkedToDolibarrMember").''; print ''; $adh=new Adherent($db); - $result=$adh->fetch('','',$soc->id); + $result=$adh->fetch('','',$societe->id); if ($result > 0) { $adh->ref=$adh->getFullName($langs);