Serious enhancement in auto subscription for member module

This commit is contained in:
Laurent Destailleur
2018-03-23 20:45:35 +01:00
parent 53edb86ffb
commit c7e93a5a3b
6 changed files with 95 additions and 43 deletions

View File

@@ -210,7 +210,7 @@ function getOnlinePaymentUrl($mode, $type, $ref='', $amount='9.99', $freetag='yo
}
// For multicompany
if (! empty($out)) $out.="&entity=".$conf->entity; // Check the entity because He may be the same reference in several entities
if (! empty($out) && ! empty($conf->multicompany->enabled)) $out.="&entity=".$conf->entity; // Check the entity because we may have the same reference in several entities
return $out;
}