Project

General

Profile

Actions

Bug #97463

closed

Administration Log increased with Warnings form EmailFinisher.php -L337

Added by Michael Hilse over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Logging
Target version:
Start date:
2022-04-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF