CodersCare / l10nmgr

GNU General Public License v3.0
0 stars 9 forks source link

Error in Localization submodule due to undefined array key #29

Closed Konafets closed 1 year ago

Konafets commented 1 year ago

The issue here is the order of execution of code like this (string)$array['key'] ?? ''. The intention is check the existence of the key via ?? but the cast (string) is executed before ??. At the end the check does not happen.

2023-06-30_15-06-40

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "header" in /l10nmgr_v11/packages/l10nmgr/Classes/View/L10nHtmlListView.php line 128 | TYPO3\CMS\Core\Error\Exception thrown in file /l10nmgr_v11/public/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 137.