Fix scrutinizer

This commit is contained in:
Laurent Destailleur 2018-07-16 11:25:21 +02:00
parent 4128cee3ee
commit c477ca8266
2 changed files with 2 additions and 2 deletions

View File

@ -934,7 +934,7 @@ class FormMail extends Form
$url=getOnlinePaymentUrl(0, $typeforonlinepayment, $this->substit['__REF__']);
$paymenturl=$url;
$validpaymentmethod = getValidOnlinePaymentMethods($paymentmethod);
$validpaymentmethod = getValidOnlinePaymentMethods('');
}
if (count($validpaymentmethod) > 0 && $paymenturl)

View File

@ -90,7 +90,7 @@ function payment_supplier_prepare_head(Paiement $object) {
/**
* Return array of valid payment mode
*
* @param string $paymentmethod Filter on this payment method
* @param string $paymentmethod Filter on this payment method (''=none, 'paypal', ...)
* @return array Array of valid payment method
*/
function getValidOnlinePaymentMethods($paymentmethod='')