Fixed bug #15976: [version] Reference to global array without fetching from global...
authorSteffen Gebert <steffen.gebert@typo3.org>
Sat, 16 Oct 2010 21:54:32 +0000 (21:54 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sat, 16 Oct 2010 21:54:32 +0000 (21:54 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9111 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index ca3537e..bce002d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Added feature #15696: Implement TypoScript conditions for the current page record (Thanks to Stefan Neufeind)
        * Follow-up to #15576: Code for t3lib_message_ErrorpageMessage was contained twice
+       * Fixed bug #15976: [version] Reference to global array $TCA without fetching from global scope
 
 2010-10-16  Susanne Moog  <typo3@susanne-moog.de>
 
index 05f85bc..4b2be79 100644 (file)
@@ -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');