[BUGFIX] FE-Error "NO entry in the $TCA-array..."
authorNicole Cordes <cordes@cps-it.de>
Fri, 17 Jun 2011 09:33:56 +0000 (11:33 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Mon, 20 Jun 2011 15:50:45 +0000 (17:50 +0200)
Fix a possible race condition during a FE call if a BE user
'clears all cache' at the same time.

Change-Id: I4fe5e0256093df8190eb6f1a2754edf1e3aba405
Resolves: #22928
Releases: 4.6, 4.5, 4.4, 4.3
Reviewed-on: http://review.typo3.org/2834
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Oliver Klee
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/cms/tslib/class.tslib_fe.php

index 89e06a1..54d6139 100644 (file)
                        $GLOBALS['TCA'] = array();
                        include (TYPO3_tables_script ? PATH_typo3conf.TYPO3_tables_script : PATH_t3lib.'stddb/tables.php');
                                // Extension additions
-                       if ($GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE']) {
+                       if ($GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'] && file_exists(PATH_typo3conf . $GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'] . '_ext_tables.php')) {
                                include(PATH_typo3conf.$GLOBALS['TYPO3_LOADED_EXT']['_CACHEFILE'].'_ext_tables.php');
                        } else {
                                include(PATH_t3lib.'stddb/load_ext_tables.php');