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

ChangeLog
t3lib/class.t3lib_extmgm.php

index 989367f..66ec030 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-11-30  Oliver Hader  <oh@inpublica.de>
 
        * Fixed bug #5602: spamProtectEmailAddresses_atSubst is not recognized correctly
index 4ef6270..774e35e 100644 (file)
@@ -257,7 +257,7 @@ class t3lib_extMgm {
                t3lib_div::loadTCA($table);
                if (trim($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)    {
                                                $append=true;
                                                $showItem = t3lib_div::trimExplode(',',$TCA[$table]['types'][$k]['showitem'],1);