mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Fix var no defined
This commit is contained in:
@@ -7944,6 +7944,8 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
// Set the online payment url link into __ONLINE_PAYMENT_URL__ key
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
|
||||
$outputlangs->loadLangs(array('paypal', 'other'));
|
||||
|
||||
$amounttouse = 0;
|
||||
$typeforonlinepayment = 'free';
|
||||
if (is_object($object) && $object->element == 'commande') {
|
||||
$typeforonlinepayment = 'order';
|
||||
@@ -7953,7 +7955,6 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
}
|
||||
if (is_object($object) && $object->element == 'member') {
|
||||
$typeforonlinepayment = 'member';
|
||||
$amounttouse = 0;
|
||||
if (!empty($object->last_subscription_amount)) {
|
||||
$amounttouse = $object->last_subscription_amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user