Skip to content
Snippets Groups Projects
Commit 9b48e6a1 authored by Gerry Weißbach's avatar Gerry Weißbach Committed by Andreas Gohr
Browse files

Continue if there are no attributes

If an entry in the loop at `_tpl_metaheaders_action` has no content, skip this entry.
parent 2ba67679
No related branches found
No related tags found
No related merge requests found
......@@ -449,6 +449,7 @@ function _tpl_metaheaders_action($data) {
echo "<!--[if gte IE 9]><!-->\n"; // no scripts for old IE
}
foreach($inst as $attr) {
if ( empty($attr) ) { continue; }
echo '<', $tag, ' ', buildAttributes($attr);
if(isset($attr['_data']) || $tag == 'script') {
if($tag == 'script' && $attr['_data'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment