From d56652f4e8a3b979d88f8825ee55fc58afb07bd7 Mon Sep 17 00:00:00 2001 From: Daniel Gohlke Date: Fri, 16 May 2025 15:40:18 +0200 Subject: [PATCH] [BUGFIX] Change order in condition to avoid access undefined array key Relates: #659 --- .../Service/AbstractConfigurationFromTypoScriptService.php | 4 ++-- Documentation/guides.xml | 2 +- ext_emconf.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Service/AbstractConfigurationFromTypoScriptService.php b/Classes/Service/AbstractConfigurationFromTypoScriptService.php index c743d9dc..dcc6b9f1 100644 --- a/Classes/Service/AbstractConfigurationFromTypoScriptService.php +++ b/Classes/Service/AbstractConfigurationFromTypoScriptService.php @@ -63,8 +63,8 @@ public function getConfigurationsForType(string $configurationType, ?string $cou if (isset($country)) { if ( !empty($configuration['countries']) && - is_array($configuration['countries'][$country]) && - !empty($configuration['countries'][$country]) + !empty($configuration['countries'][$country]) && + is_array($configuration['countries'][$country]) ) { return $configuration['countries'][$country]; } diff --git a/Documentation/guides.xml b/Documentation/guides.xml index 07edf8a1..bdb48178 100644 --- a/Documentation/guides.xml +++ b/Documentation/guides.xml @@ -11,7 +11,7 @@ interlink-shortcode="extcode/cart" /> diff --git a/ext_emconf.php b/ext_emconf.php index 7b7c06af..fa0d775f 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -4,7 +4,7 @@ 'title' => 'Cart', 'description' => 'Shopping Cart(s) for TYPO3', 'category' => 'plugin', - 'version' => '10.2.3', + 'version' => '10.2.4', 'state' => 'stable', 'author' => 'Daniel Gohlke', 'author_email' => 'ext@extco.de',