Empty offline payment method listener fixed..

This commit is contained in:
Cüneyt Şentürk 2021-01-27 18:36:17 +03:00
parent 0c4c28075e
commit 86205c5a18

View File

@ -16,6 +16,10 @@ class ShowAsPaymentMethod
{ {
$methods = json_decode(setting('offline-payments.methods'), true); $methods = json_decode(setting('offline-payments.methods'), true);
if (empty($methods)) {
return;
}
foreach ($methods as $method) { foreach ($methods as $method) {
$event->modules->payment_methods[] = $method; $event->modules->payment_methods[] = $method;
} }