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
// 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();