Open domsie opened 7 years ago
In my view it could be solved with following part
foreach ($fields as $name => $value)
{
if ( is_array($value) )
{
foreach ( $value as $key => $val )
{
$body .= sprintf($part_field, $boundary, $key, $val);
$body .= "{$val}\r\n";
}
}
else
{
$body .= sprintf($part_field, $boundary, $name, $value);
$body .= "{$value}\r\n";
}
}
If the HTML-Form POST value is an array if got an:
PHP Notice: Array to string conversion in /srv/www/htdocs/vendor/src/Http/Request.php on line 258
It´s within the following part of request.php:
One example could be: