Skip to content

Commit

Permalink
refs #86 fixed control
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Nov 20, 2017
1 parent 094af29 commit e9f5dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Utilities/Modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function getPaymentMethods()

foreach ($results as $gateways) {
foreach ($gateways as $gateway) {
if (!isset($gateway['name']) || !isset($gateway['code']) || isset($gateway['order'])) {
if (!isset($gateway['name']) || !isset($gateway['code']) || !isset($gateway['order'])) {
continue;
}

Expand Down Expand Up @@ -66,6 +66,6 @@ public static function getPaymentMethods()
Cache::put('payment_methods.admin', $payment_methods, Date::now()->addHour(6));
}

return $payment_methods;
return ($payment_methods) ? $payment_methods : [];
}
}

0 comments on commit e9f5dd8

Please sign in to comment.