From e0aad0e248803529ee05f699057ff6595e3a27ea Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 30 Nov 2014 18:32:48 +0200 Subject: [PATCH] Bug fix related to the selected currency --- app/controllers/PaymentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index 0eda769b7..2a34c5e83 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -227,7 +227,7 @@ class PaymentController extends \BaseController $key = $invoice->invoice_number . '_details'; $gateway = $invoice->client->account->account_gateways[0]->gateway; $paymentLibrary = $gateway->paymentlibrary; - $currencyCode = $invoice->client->currency ? $invoice->client->currency->code : $invoice->account->currency ? $invoice->account->currency->code : 'USD'; + $currencyCode = $invoice->client->currency ? $invoice->client->currency->code : ($invoice->account->currency ? $invoice->account->currency->code : 'USD'); if ($input && $paymentLibrary->id == PAYMENT_LIBRARY_OMNIPAY) {