Fix warnings
This commit is contained in:
parent
b69031e979
commit
2f2349d738
@ -471,7 +471,7 @@ function htmlPrintOnlinePaymentFooter($fromcompany, $langs, $addformmessage = 0,
|
||||
|
||||
print '<div class="center paddingleft paddingright">'."\n";
|
||||
if ($addformmessage) {
|
||||
print '<!-- object = '.$object->element.' -->';
|
||||
print '<!-- object = '.(empty($object) ? 'undefined' : $object->element).' -->';
|
||||
print '<br>';
|
||||
|
||||
$parammessageform = 'ONLINE_PAYMENT_MESSAGE_FORM_'.$suffix;
|
||||
@ -482,7 +482,7 @@ function htmlPrintOnlinePaymentFooter($fromcompany, $langs, $addformmessage = 0,
|
||||
}
|
||||
|
||||
// Add other message if VAT exists
|
||||
if (!empty($object->total_vat) || $object->total_tva != 0) {
|
||||
if (!empty($object->total_vat) || !empty($object->total_tva)) {
|
||||
$parammessageform = 'ONLINE_PAYMENT_MESSAGE_FORMIFVAT_'.$suffix;
|
||||
if (!empty($conf->global->$parammessageform)) {
|
||||
print $langs->transnoentities($conf->global->$parammessageform);
|
||||
|
||||
@ -912,14 +912,14 @@ print '<!-- Form to send a payment -->'."\n";
|
||||
print '<!-- creditor = '.dol_escape_htmltag($creditor).' -->'."\n";
|
||||
// Additionnal information for each payment system
|
||||
if (!empty($conf->paypal->enabled)) {
|
||||
print '<!-- PAYPAL_API_SANDBOX = '.$conf->global->PAYPAL_API_SANDBOX.' -->'."\n";
|
||||
print '<!-- PAYPAL_API_INTEGRAL_OR_PAYPALONLY = '.$conf->global->PAYPAL_API_INTEGRAL_OR_PAYPALONLY.' -->'."\n";
|
||||
print '<!-- PAYPAL_API_SANDBOX = '.getDolGlobalString('PAYPAL_API_SANDBOX').' -->'."\n";
|
||||
print '<!-- PAYPAL_API_INTEGRAL_OR_PAYPALONLY = '.getDolGlobalString('PAYPAL_API_INTEGRAL_OR_PAYPALONLY').' -->'."\n";
|
||||
}
|
||||
if (!empty($conf->paybox->enabled)) {
|
||||
print '<!-- PAYBOX_CGI_URL = '.$conf->global->PAYBOX_CGI_URL_V2.' -->'."\n";
|
||||
print '<!-- PAYBOX_CGI_URL = '.getDolGlobalString('PAYBOX_CGI_URL_V2').' -->'."\n";
|
||||
}
|
||||
if (!empty($conf->stripe->enabled)) {
|
||||
print '<!-- STRIPE_LIVE = '.$conf->global->STRIPE_LIVE.' -->'."\n";
|
||||
print '<!-- STRIPE_LIVE = '.getDolGlobalString('STRIPE_LIVE').' -->'."\n";
|
||||
}
|
||||
print '<!-- urlok = '.$urlok.' -->'."\n";
|
||||
print '<!-- urlko = '.$urlko.' -->'."\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user