From f5fe6fa2ee0e941f9e573ab691c9e0c4f9a2f8b9 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 15 Aug 2017 20:40:57 +0300 Subject: [PATCH] Minor improvement on fix --- src/classes/Gantry/Component/Twig/TwigExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/Gantry/Component/Twig/TwigExtension.php b/src/classes/Gantry/Component/Twig/TwigExtension.php index 1358c59a6..87638c50c 100644 --- a/src/classes/Gantry/Component/Twig/TwigExtension.php +++ b/src/classes/Gantry/Component/Twig/TwigExtension.php @@ -271,7 +271,7 @@ public function attributeArrayFilter($input) foreach ((array) $value as $key2 => $value2) { $array[] = HtmlDocument::escape($key2) . '="' . HtmlDocument::escape($value2, 'html_attr') . '"'; } - } else { + } elseif ($key) { $array[] = HtmlDocument::escape($key) . '="' . HtmlDocument::escape($value, 'html_attr') . '"'; } }