Skip to content

Commit fb71912

Browse files
authored
Fixed array to string conversion error in Mage::getStoreConfigFlag() (#2824)
1 parent 9b2cdf6 commit fb71912

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Mage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ public static function getStoreConfig($path, $store = null)
410410
*/
411411
public static function getStoreConfigFlag($path, $store = null)
412412
{
413-
$flag = strtolower(self::getStoreConfig($path, $store));
413+
$flag = self::getStoreConfig($path, $store);
414+
$flag = is_string($flag) ? strtolower($flag) : $flag;
414415
if (!empty($flag) && $flag !== 'false') {
415416
return true;
416417
} else {

0 commit comments

Comments
 (0)