[BUGFIX] "Upgrade Wizard" screen goes blank
authorMattias Nilsson <tollepjaer@gmail.com>
Wed, 31 Oct 2012 17:39:28 +0000 (18:39 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 2 Nov 2012 09:58:08 +0000 (10:58 +0100)
When using the "Upgrade Wizard" in install tool the screen goes blank.

Change-Id: I3a9c6bb2c86bbeb2c0fa17fd547e626eebfc2749
Resolves: #42569
Releases: 6.0
Reviewed-on: http://review.typo3.org/16083
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/install/Classes/CoreUpdates/MigrateWorkspacesUpdate.php

index 505f665..6bb314f 100644 (file)
@@ -181,11 +181,13 @@ class MigrateWorkspacesUpdate extends \TYPO3\CMS\Install\CoreUpdates\InstallSysE
                $foundDraftRecords = FALSE;
                $tables = array_keys($GLOBALS['TCA']);
                foreach ($tables as $table) {
-                       $versioningVer = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($GLOBALS['TCA'][$table]['ctrl']['versioningWS'], 0, 2, 0);
-                       if ($versioningVer > 0) {
-                               if ($this->hasElementsOnWorkspace($table, -1)) {
-                                       $foundDraftRecords = TRUE;
-                                       break;
+                       if (is_array($GLOBALS['TCA'][$table])) {
+                               $versioningVer = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($GLOBALS['TCA'][$table]['ctrl']['versioningWS'], 0, 2, 0);
+                               if ($versioningVer > 0) {
+                                       if ($this->hasElementsOnWorkspace($table, -1)) {
+                                               $foundDraftRecords = TRUE;
+                                               break;
+                                       }
                                }
                        }
                }