Actions
Bug #96563
closedLanguageMenuProcessor.php
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2022-01-17
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hello,
I'm neither a typo3 nor php developer, and I don't know if this is the right place? Do you have a repo where I can create a proper pull request somewhere?
Anyway one of my customers has a typo3 v11.5.5 installed and has hundred's instances of an error in their log-files nagging about a problem with $menu
on line 420 of typo3/sysext/frontend/Classes/DataProcessing/LanguageMenuProcessor.php
- I fixed it with a if(is_iterable($menu))
clause. Again, I'm not a php developer, there might be a proper way to do this, but it fixes the problem. My customer and I would be very happy to not have to manually patch this after every typo3 update...
So please include it (or a better fix) in the next release. Thank you!
if(is_iterable($menu)) {
foreach ($menu as $key => $language) {
$processedMenu[$key] = $language;
}
}
Actions