Fixed bug #15799: Uninitialized variables in t3lib within version extension (Thanks...
[Packages/TYPO3.CMS.git] / typo3 / sysext / version / class.tx_version_tcemain.php
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']['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'];
                        }
 
                                $newVersion_placeholderFieldArray[$TCA[$table]['ctrl']['tstamp']] = $GLOBALS['EXEC_TIME'];
                        }