From 3e2819a539b0fec7927da612120c6338d813eace Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Sun, 18 Dec 2022 21:58:07 +0100 Subject: [PATCH] Fix array to string conversion error --- app/Mage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Mage.php b/app/Mage.php index cb8efbaa817..2c14517e6f9 100644 --- a/app/Mage.php +++ b/app/Mage.php @@ -410,7 +410,8 @@ public static function getStoreConfig($path, $store = null) */ public static function getStoreConfigFlag($path, $store = null) { - $flag = strtolower(self::getStoreConfig($path, $store)); + $flag = self::getStoreConfig($path, $store); + $flag = is_string($flag) ? strtolower($flag) : $flag; if (!empty($flag) && $flag !== 'false') { return true; } else {