Fixed bug #6114: t3lib_extMgm::addToAllTCATypes ignores type 0
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_extmgm.php
index c3158a0..3fc007b 100644 (file)
@@ -258,7 +258,7 @@ class t3lib_extMgm {
                $str = trim($str);
                if ($str && is_array($TCA[$table]) && is_array($TCA[$table]['types']))  {
                        foreach($TCA[$table]['types'] as $k => $v)      {
-                               if (!$specificTypesList || t3lib_div::inList($specificTypesList,$k))    {
+                               if ($specificTypesList === '' || t3lib_div::inList($specificTypesList,$k))      {
                                        if ($insert)    {
                                                if (count($positionArr)) {
                                                        $append=true;