[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)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 23 Jun 2011 20:08:04 +0000 (22:08 +0200)
Fix a possible race condition during a FE call if a BE user
'clears all cache' at the same time.

Change-Id: I55190c3437bcc6239d0ce96c23a0a5783fcd1c5e
Resolves: #22928
Releases: 4.6, 4.5, 4.4, 4.3
Reviewed-on: http://review.typo3.org/2843
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/cms/tslib/class.tslib_fe.php

index 6f1aa56..f9448fc 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');