forked from extern/egroupware
fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
parent
a50054b8c7
commit
2f1559a490
@ -5062,7 +5062,7 @@ class Mail
|
||||
static function &getdisplayableBody(&$mailClass, $bodyParts, $preserveHTML = false, $useTidy = true)
|
||||
{
|
||||
$message='';
|
||||
for($i=0, $cnt=count($bodyParts); $i < $cnt; $i++)
|
||||
for($i=0, $cnt=count($bodyParts ?? []); $i < $cnt; $i++)
|
||||
{
|
||||
if (!isset($bodyParts[$i]['body'])) {
|
||||
$bodyParts[$i]['body'] = self::getdisplayableBody($mailClass, $bodyParts[$i], $preserveHTML, $useTidy);
|
||||
|
Loading…
Reference in New Issue
Block a user