X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/6bbcdacfe3e0fb9905d9a88fcc0af063046980d0..59d0cda36769d13214602f4385b0d6dd50e270f7:/typo3/sysext/version/class.tx_version_tcemain.php diff --git a/typo3/sysext/version/class.tx_version_tcemain.php b/typo3/sysext/version/class.tx_version_tcemain.php index b802ed17751..4b2be79bf34 100644 --- a/typo3/sysext/version/class.tx_version_tcemain.php +++ b/typo3/sysext/version/class.tx_version_tcemain.php @@ -198,7 +198,7 @@ class tx_version_tcemain { // Look, if record is an offline version, then delete directly: if ($record['pid'] == -1) { - if ($TCA[$table]['ctrl']['versioningWS']) { + if ($GLOBALS['TCA'][$table]['ctrl']['versioningWS']) { // In Live workspace, delete any. In other workspaces there must be match. if ($tcemainObj->BE_USER->workspace == 0 || (int) $record['t3ver_wsid'] == $tcemainObj->BE_USER->workspace) { $liveRec = t3lib_BEfunc::getLiveVersionOfRecord($table, $id, 'uid,t3ver_state'); @@ -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']; }