Followup to #10094: Use foreach instead of while-list-each constructs in t3lib_TCEmain
authorBenni Mack <benni.mack@typo3.org>
Fri, 30 Jan 2009 15:15:08 +0000 (15:15 +0000)
committerBenni Mack <benni.mack@typo3.org>
Fri, 30 Jan 2009 15:15:08 +0000 (15:15 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4890 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 39124f7..cc2c276 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-30  Benjamin Mack  <benni@typo3.org>
+
+       * Followup to #10094: Use foreach instead of while-list-each constructs in t3lib_TCEmain
+
 2009-01-30  Francois Suter  <francois@typo3.org>
 
        * Fixed bug #10304: Links in the warning box are not visible as links (thanks to Georg Ringer)
index b84b49b..779e9fa 100755 (executable)
@@ -6450,7 +6450,7 @@ $this->log($table,$id,6,0,0,'Stage raised...',30,array('comment'=>$comment,'stag
                        t3lib_div::loadTCA($table);
                        $curData=$this->recordInfo($table,$uid,'*');
                        $newData=array();
-                       foreach ($GLOBALS['TCA']['columns'] as $field => $conf) {
+                       foreach ($GLOBALS['TCA'][$table]['columns'] as $field => $conf) {
                                if ($conf['config']['type']=='input')   {
                                        $evalCodesArray = t3lib_div::trimExplode(',',$conf['config']['eval'],1);
                                        if (in_array('uniqueInPid',$evalCodesArray))    {