Skip to content
Snippets Groups Projects
Commit c39209a3 authored by Richard Haeser's avatar Richard Haeser Committed by Jigal van Hemert
Browse files

[BUGFIX] Make empty $GLOBALS['TBE_MODULES_EXT'] traversable

Prevent warnings and notices if $GLOBALS['TBE_MODULES_EXT'] is not
set, which can be the case if no extensions are installed.

Change-Id: I72f513329790ee3b71fd30054574b79f41a6dcf8
Resolves: #83479
Releases: master, 8.7, 7.6
Reviewed-on: https://review.typo3.org/55274


Reviewed-by: default avatarJigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: default avatarJigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: default avatarRichard Haeser <richard@maxserv.com>
Tested-by: default avatarRichard Haeser <richard@maxserv.com>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
parent 29984cd1
Branches
Tags
No related merge requests found
......@@ -188,7 +188,7 @@ class BackendModuleRepository implements \TYPO3\CMS\Core\SingletonInterface
*/
protected function createMenuEntriesForTbeModulesExt()
{
foreach ($GLOBALS['TBE_MODULES_EXT'] as $mainModule => $tbeModuleExt) {
foreach ($GLOBALS['TBE_MODULES_EXT'] ?? [] as $mainModule => $tbeModuleExt) {
list($main) = explode('_', $mainModule);
$mainEntry = $this->findByModuleName($main);
if ($mainEntry === false) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment