Skip to content

Commit

Permalink
[TASK] Securing condition wether TypoScript could be loaded or not
Browse files Browse the repository at this point in the history
Solves: #10
  • Loading branch information
featdd committed Feb 17, 2021
1 parent 56d61c7 commit b19a1bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Utility/SettingsUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ public static function extensionTypoScriptSettings(): array
$typoscript = $configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
$typoscript = GeneralUtility::removeDotsFromTS($typoscript);

if (false === array_key_exists(self::EXTENSION_TYPOSCRIPT_KEY, $typoscript['plugin'])) {
if (
false === is_array($typoscript) ||
false === is_array($typoscript['plugin']) ||
false === array_key_exists(self::EXTENSION_TYPOSCRIPT_KEY, $typoscript['plugin'])
) {
return [];
}

Expand Down

0 comments on commit b19a1bd

Please sign in to comment.