From 9b48e6a1bc0f6f0a3870fa739d052974e69fd8e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gerry=20Wei=C3=9Fbach?= <gerry.w@gammaproduction.de>
Date: Wed, 5 Apr 2017 14:42:57 +0200
Subject: [PATCH] Continue if there are no attributes

If an entry in the loop at `_tpl_metaheaders_action` has no content, skip this entry.
---
 inc/template.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/inc/template.php b/inc/template.php
index 85d3f9eee..19c36abed 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -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'])
-- 
GitLab