Fixing style errors.
This commit is contained in:
parent
fd4c071c55
commit
afefc369ed
@ -2029,10 +2029,10 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
||||
|
||||
if ($useonlinepayment) {
|
||||
print '<br>';
|
||||
if(empty($amount)) { // Take the maximum amount among what the member is supposed to pay / has paid in the past
|
||||
if (empty($amount)) { // Take the maximum amount among what the member is supposed to pay / has paid in the past
|
||||
$amount = price(max($adht->amount, $object->first_subscription_amount, $object->last_subscription_amount));
|
||||
}
|
||||
if(empty($amount)) {
|
||||
if (empty($amount)) {
|
||||
$amount = 0;
|
||||
}
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
|
||||
|
||||
@ -176,7 +176,7 @@ function getValidOnlinePaymentMethods($paymentmethod = '')
|
||||
* @param int $amount Amount of money to request for
|
||||
* @return string Url string
|
||||
*/
|
||||
function showOnlinePaymentUrl($type, $ref, $amount='9.99')
|
||||
function showOnlinePaymentUrl($type, $ref, $amount = '9.99')
|
||||
{
|
||||
global $langs;
|
||||
|
||||
@ -203,7 +203,7 @@ function showOnlinePaymentUrl($type, $ref, $amount='9.99')
|
||||
* @param int $amount Amount of money to request for
|
||||
* @return string Url string
|
||||
*/
|
||||
function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount='9.99')
|
||||
function getHtmlOnlinePaymentLink($type, $ref, $label = '', $amount = '9.99')
|
||||
{
|
||||
$url = getOnlinePaymentUrl(0, $type, $ref, $amount);
|
||||
$label = $label ? $label : $url;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user