[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 16:46:36 +0000 (18:46 +0200)
Fix a possible race condition during a FE call if a BE user
'clears all cache' at the same time.

Change-Id: Ieaf1953147d23ec1266372273442820d2aa42308
Resolves: #22928
Releases: 4.6, 4.5, 4.4, 4.3
Reviewed-on: http://review.typo3.org/2839
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/cms/tslib/class.tslib_fe.php

index 9a009bf..04e6983 100644 (file)
                        $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');