diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php
index efc522945ca..a3d839cbe74 100644
--- a/htdocs/core/class/html.formmail.class.php
+++ b/htdocs/core/class/html.formmail.class.php
@@ -1629,7 +1629,7 @@ class FormMail extends Form
}
//Online payement link
- if (!empty(adherent->enabled)) {
+ if (!empty($conf->adherent->enabled)) {
$tmparray['__ONLINEPAYMENTLINK_MEMBER__'] = 'OnlinePaymentLinkUniquePerMember';
}
if (!empty($conf->don->enabled)) {