Added strict check against `false` value
authorAlexander Ebert <ebert@woltlab.com>
Mon, 25 Sep 2017 15:57:30 +0000 (17:57 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 25 Sep 2017 15:57:30 +0000 (17:57 +0200)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeWoltlabMetacodeMarker.class.php

index f76dd3c59f44d68e3ae6e72c6d80b38ba4b2cefa..7162f5140abc50c931966e372f526b5292d1f741 100644 (file)
@@ -530,7 +530,7 @@ class HtmlInputNodeWoltlabMetacodeMarker extends AbstractHtmlInputNode {
                
                $attributes = isset($pair['attributes']) ? $pair['attributes'] : [];
                $content = '';
-               if (isset($pair['useText']) && isset($attributes[$pair['useText']])) {
+               if (isset($pair['useText']) && $pair['useText'] !== false && isset($attributes[$pair['useText']])) {
                        $content = array_splice($attributes, $pair['useText'])[0];
                }