From 740897dca832c81c29deb3bc348547bf030b3d4d Mon Sep 17 00:00:00 2001 From: asivery Date: Sat, 25 Feb 2023 02:23:46 +0100 Subject: Fix: 'E_WARNING: Undefined array key "_data"' --- inc/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/template.php b/inc/template.php index 51fa53e53..0dbf830c1 100644 --- a/inc/template.php +++ b/inc/template.php @@ -388,12 +388,12 @@ function _tpl_metaheaders_action($data) { if ( empty($attr) ) { continue; } echo '<', $tag, ' ', buildAttributes($attr); if(isset($attr['_data']) || $tag == 'script') { - if($tag == 'script' && $attr['_data']) + if($tag == 'script' && isset($attr['_data'])) $attr['_data'] = "/**/"; - echo '>', $attr['_data'], ''; + echo '>', isset($attr['_data']) ? $attr['_data'] : '', ''; } else { echo '/>'; } -- cgit v1.2.3