Fixed bug #15799: Uninitialized variables in t3lib within version extension (Thanks...
authorBenni Mack <benni.mack@typo3.org>
Sat, 16 Oct 2010 18:18:11 +0000 (18:18 +0000)
committerBenni Mack <benni.mack@typo3.org>
Sat, 16 Oct 2010 18:18:11 +0000 (18:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9102 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/version/class.tx_version_tcemain.php

index 39c267a..8e75d3c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
 
 2010-10-16  Benjamin Mack  <benni@typo3.org>
 
+       * Fixed bug #15799: Uninitialized variables in t3lib within version extension (Thanks to Oliver Klee)
        * Fixed bug #15576: Enable customization for fatal error messages in the backend and frontend / Make all page errors RuntimeExceptions and unify BE and FE fatal errors in a single HTML template (Thanks to Reinhard F├╝hricht, Aske Ertmann)
        * Fixed bug #15877: Put versioning code from TCEmain in version extension - part #2 - moving records
 
index b802ed1..05f85bc 100644 (file)
@@ -1160,7 +1160,7 @@ State was change by %s (username: %s)
                        if ($TCA[$table]['ctrl']['cruser_id']) {
                                $newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['cruser_id']] = $tcemainObj->userid;
                        }
-                       if ($TCA[$table]['ctrl']['tstamp'] && count($fieldArray)) {
+                       if ($TCA[$table]['ctrl']['tstamp']) {
                                $newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME'];
                        }