diff options
author | asivery <asivery@protonmail.com> | 2023-02-25 02:23:46 +0100 |
---|---|---|
committer | asivery <asivery@protonmail.com> | 2023-02-25 02:23:46 +0100 |
commit | 740897dca832c81c29deb3bc348547bf030b3d4d (patch) | |
tree | e891f5f82d0693b2c15ebbba2379794fe20d9245 /inc | |
parent | a42c05d2dd170bfdf65b34862ce9ed085297d733 (diff) | |
download | dokuwiki-740897dca832c81c29deb3bc348547bf030b3d4d.tar.gz dokuwiki-740897dca832c81c29deb3bc348547bf030b3d4d.zip |
Fix: 'E_WARNING: Undefined array key "_data"'
Diffstat (limited to 'inc')
-rw-r--r-- | inc/template.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'] = "/*<![CDATA[*/". $attr['_data']. "\n/*!]]>*/"; - echo '>', $attr['_data'], '</', $tag, '>'; + echo '>', isset($attr['_data']) ? $attr['_data'] : '', '</', $tag, '>'; } else { echo '/>'; } |