From 6b6dc1c80002ce8cd23afdfa4229e92d190c444c Mon Sep 17 00:00:00 2001 From: gmorel Date: Mon, 9 Sep 2013 19:22:07 +0200 Subject: [PATCH] Working - Allow to parse array and objects in Smarty Template --- core/lib/Thelia/Core/Template/Smarty/SmartyParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php index ad656df32..30144a263 100755 --- a/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php +++ b/core/lib/Thelia/Core/Template/Smarty/SmartyParser.php @@ -102,7 +102,7 @@ class SmartyParser extends Smarty implements ParserInterface public static function theliaEscape($content, $smarty) { - if(!is_object($content)) { + if(is_scalar($content)) { return htmlspecialchars($content ,ENT_QUOTES, Smarty::$_CHARSET); } else { return $content;