diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index fe705fa99b8..da8fadb6bb0 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -2096,16 +2096,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$somethingshown = $formfile->numoffiles;
// Show links to link elements
- //$linktoelem = $form->showLinkToObjectBlock($object, null, array('subscription'));
+ //$tmparray = $form->showLinkToObjectBlock($object, null, array('subscription'), 1);
//$somethingshown = $form->showLinkedObjectBlock($object, '');
- // Show links to link elements
- /*$linktoelem = $form->showLinkToObjectBlock($object,array('order'));
- if ($linktoelem) {
- print ($somethingshown?'':'
').$linktoelem;
- }
- */
-
// Show online payment link
// The list can be complete by the hook 'doValidatePayment' executed inside getValidOnlinePaymentMethods()
include_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
diff --git a/htdocs/adherents/subscription/card.php b/htdocs/adherents/subscription/card.php
index 17e8b2f75c3..014dc3439fd 100644
--- a/htdocs/adherents/subscription/card.php
+++ b/htdocs/adherents/subscription/card.php
@@ -395,13 +395,9 @@ if ($rowid && $action != 'edit') {
$somethingshown = $formfile->numoffiles;
*/
// Show links to link elements
- //$linktoelem = $form->showLinkToObjectBlock($object, null, array('subscription'));
+ //$tmparray = $form->showLinkToObjectBlock($object, null, array('subscription'), 1);
$somethingshown = $form->showLinkedObjectBlock($object, '');
- // Show links to link elements
- /*$linktoelem = $form->showLinkToObjectBlock($object,array('order'));
- if ($linktoelem) print ($somethingshown?'':'
').$linktoelem;
- */
print '