From e8193927d331ecc23de9bf560df93b2daaa563d9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 17 Mar 2015 16:43:35 +0200 Subject: [PATCH] Fix for license payment --- app/models/Account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/Account.php b/app/models/Account.php index b988a5e65b39..22fb3ecd1cfc 100755 --- a/app/models/Account.php +++ b/app/models/Account.php @@ -99,7 +99,7 @@ class Account extends Eloquent public function getGatewayByType($type = PAYMENT_TYPE_ANY) { foreach ($this->account_gateways as $gateway) { - if ($type == PAYMENT_TYPE_ANY) { + if (!$type || $type == PAYMENT_TYPE_ANY) { return $gateway; } elseif ($gateway->isPayPal() && $type == PAYMENT_TYPE_PAYPAL) { return $gateway;