Fixed bug #6114: t3lib_extMgm::addToAllTCATypes ignores type 0
authorJeff Segars <jsegars@alumni.rice.edu>
Tue, 4 Dec 2007 22:46:35 +0000 (22:46 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Tue, 4 Dec 2007 22:46:35 +0000 (22:46 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2794 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_extmgm.php

index b4eeafa..3c6d5d3 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-04  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Fixed bug #6114: t3lib_extMgm::addToAllTCATypes ignores type 0
+       
 2007-12-02     Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #6727: Fatal error install tool
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;