[BUGFIX] HTMLparser, treat fixAttrib.unset as boolean
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_parsehtml.php
index 78707a3..3ec610f 100644 (file)
@@ -825,7 +825,7 @@ class t3lib_parsehtml {
                                                                                if (strlen($params['set'])) {
                                                                                        $tagAttrib[0][$attr] = $params['set'];
                                                                                }
-                                                                               if (strlen($params['unset'])) {
+                                                                               if (isset($params['unset']) && !empty($params['unset'])) {
                                                                                        unset($tagAttrib[0][$attr]);
                                                                                }
                                                                                if (strcmp($params['default'], '') && !isset($tagAttrib[0][$attr])) {