From 4d648b52fbfddce63b796c65c875be31e023e955 Mon Sep 17 00:00:00 2001 From: Andrian Iliev Date: Tue, 7 Mar 2023 11:40:22 +0200 Subject: [PATCH] Integrated pull request https://github.com/limegrow/ingenico-m2-payments/pull/41 --- Model/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/Config.php b/Model/Config.php index b3af677..81d5b1b 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -252,7 +252,7 @@ public function getFlexMethods($scopeId = null) $scopeId ); - return !is_array($methods) ? (array) json_decode($methods, true) : $methods; + return is_string($methods) ? (array) json_decode($methods, true) : $methods; } /**