Skip to content

Commit

Permalink
Minor improvement on fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Aug 15, 2017
1 parent 36fd5a7 commit f5fe6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Gantry/Component/Twig/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') . '"';
}
}
Expand Down

0 comments on commit f5fe6fa

Please sign in to comment.