[TASK] Make DataHandler tests notice free
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / GeneralUtility.php
index 82fe085..127fb13 100644 (file)
@@ -1557,7 +1557,7 @@ class GeneralUtility
                     $content = htmlspecialchars($v);
                     $dType = gettype($v);
                     if ($dType === 'string') {
-                        if ($options['useCDATA'] && $content != $v) {
+                        if (isset($options['useCDATA']) && $options['useCDATA'] && $content != $v) {
                             $content = '<![CDATA[' . $v . ']]>';
                         }
                     } elseif (!$options['disableTypeAttrib']) {