Bug #97463
closedAdministration Log increased with Warnings form EmailFinisher.php -L337
100%
Description
The Administration Log gets entries like:
Core: Error handler (FE): PHP Warning: Invalid argument supplied for foreach() in .../typo3/sysext/form/Classes/Domain/Finishers/EmailFinisher.php line 337
Problem in Line 337 of EmailFinisher.php:
L337: foreach ($recipients as $address => $name) {
If $recipients is not an array the warning occurs!
So we must get sure, that $recipients is cast to an array like the following code:
Solution-Proposal: (tested and worked) replace L337 with the following code
L337: foreach ( (array) $recipients as $address => $name) {
Good Luck
Updated by Gerrit Code Review over 2 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74387
Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/74396
Updated by Oliver Bartsch over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset fd6e5e038013709cd1121fc10378f11a3b0b6651.
Updated by Oliver Hader about 2 years ago
- Related to Bug #98178: Form EmailFinisher overrides for recipients with TypoScript not possible added
Updated by Oliver Hader about 2 years ago
- Related to deleted (Bug #98178: Form EmailFinisher overrides for recipients with TypoScript not possible)