close #86 Fixed: Missing payment method broken setting page
This commit is contained in:
parent
a0d6042886
commit
094af296c3
@ -34,6 +34,10 @@ class Modules
|
|||||||
|
|
||||||
foreach ($results as $gateways) {
|
foreach ($results as $gateways) {
|
||||||
foreach ($gateways as $gateway) {
|
foreach ($gateways as $gateway) {
|
||||||
|
if (!isset($gateway['name']) || !isset($gateway['code']) || isset($gateway['order'])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($customer && empty($gateway['customer'])) {
|
if ($customer && empty($gateway['customer'])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -46,7 +50,7 @@ class Modules
|
|||||||
|
|
||||||
if ($methods) {
|
if ($methods) {
|
||||||
foreach ($methods as $key => $value) {
|
foreach ($methods as $key => $value) {
|
||||||
$sort_order[$key] = $value['order'];
|
$sort_order[$key] = !empty($value['order']) ? $value['order'] : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
array_multisort($sort_order, SORT_ASC, $methods);
|
array_multisort($sort_order, SORT_ASC, $methods);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user