diff --git a/htdocs/compta/paiement/class/paiement.class.php b/htdocs/compta/paiement/class/paiement.class.php index a473f06cd04..e16834e5707 100644 --- a/htdocs/compta/paiement/class/paiement.class.php +++ b/htdocs/compta/paiement/class/paiement.class.php @@ -276,7 +276,7 @@ class Paiement extends CommonObject } if (empty($currencyofpayment)) { $currencyofpayment = isset($this->multicurrency_code[$key]) ? $this->multicurrency_code[$key] : ""; - } else if ($currencyofpayment != $this->multicurrency_code[$key]) { + } elseif ($currencyofpayment != $this->multicurrency_code[$key]) { // If we have invoices with different currencies in the payment, we stop here $this->error = 'ErrorYouTryToPayInvoicesWithDifferentCurrenciesInSamePayment'; return -1;