[BUGFIX] Additional extTables script might not exist 01/18001/2
authorPhilipp Gampe <philipp.gampe@typo3.org>
Sun, 3 Feb 2013 21:59:25 +0000 (22:59 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 4 Feb 2013 12:58:00 +0000 (13:58 +0100)
During https://review.typo3.org/17381, the constant
TYPO3_extTableDef_script is now always defined.

Change the bootstrap to only include the file if it really
exists.

Related: #44331
Fixes: #45122
Releases: 6.0, 6.1
Change-Id: I547c5e141b2395eb8b684ce245bb0440096f14df
Reviewed-on: https://review.typo3.org/18001
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Core/Bootstrap.php

index 6fe9d89..59e3174 100644 (file)
@@ -794,9 +794,10 @@ class Bootstrap {
                // Include standard tables.php file
                require PATH_t3lib . 'stddb/tables.php';
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadExtTables($allowCaching);
-               // Load additional ext tables script if registered
-               if (TYPO3_extTableDef_script) {
-                       include PATH_typo3conf . TYPO3_extTableDef_script;
+               // Load additional ext tables script if the file exists
+               $extTablesFile = PATH_typo3conf . TYPO3_extTableDef_script;
+               if (file_exists($extTablesFile)) {
+                       include $extTablesFile;
                }
                // Run post hook for additional manipulation
                $this->runExtTablesPostProcessingHooks();