[BUGFIX] Parse error in t3lib/class.t3lib_parsehtml.php
authorOliver Hader <oliver@typo3.org>
Wed, 14 Sep 2011 08:22:12 +0000 (10:22 +0200)
committerOliver Hader <oliver@typo3.org>
Wed, 14 Sep 2011 08:25:43 +0000 (10:25 +0200)
There is a syntax error in t3lib/class.t3lib_parsehtml.php.

Change-Id: I18db58922b8cf4eb345cd6b39c1bb8775c275e51
Resolves: #29769
Related: #29246
Reviewed-on: http://review.typo3.org/4958
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
t3lib/class.t3lib_parsehtml.php

index 803e1ed..fe0e32b 100644 (file)
@@ -801,7 +801,7 @@ class t3lib_parsehtml       {
                                                                        reset($tags[$tagName]['fixAttrib']);
                                                                        while(list($attr,$params)=each($tags[$tagName]['fixAttrib']))   {
                                                                                if (strlen($params['set']))     $tagAttrib[0][$attr] = $params['set'];
-                                                                               if (isset($params['unset']) && !empty($params['unset'])))       unset($tagAttrib[0][$attr]);
+                                                                               if (isset($params['unset']) && !empty($params['unset']))        unset($tagAttrib[0][$attr]);
                                                                                if (strcmp($params['default'],'') && !isset($tagAttrib[0][$attr]))      $tagAttrib[0][$attr]=$params['default'];
                                                                                if ($params['always'] || isset($tagAttrib[0][$attr]))   {
                                                                                        if ($params['trim'])    {$tagAttrib[0][$attr]=trim($tagAttrib[0][$attr]);}