mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 03:11:48 +02:00
Fix error (TypeError): count(): Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
parent
16820b48f8
commit
49b2313cfd
@ -2347,8 +2347,8 @@ class mail_compose
|
|||||||
@htmlspecialchars(lang("date").": ".Mail::_strtotime($headers['DATE'],'r',true), ENT_QUOTES | ENT_IGNORE,Mail::$displayCharset, false)."\r\n".
|
@htmlspecialchars(lang("date").": ".Mail::_strtotime($headers['DATE'],'r',true), ENT_QUOTES | ENT_IGNORE,Mail::$displayCharset, false)."\r\n".
|
||||||
'-------------------------------------------------'."\r\n \r\n ";
|
'-------------------------------------------------'."\r\n \r\n ";
|
||||||
$this->sessionData['mimeType'] = 'plain';
|
$this->sessionData['mimeType'] = 'plain';
|
||||||
|
$countBodyParts = count((array)$bodyParts);
|
||||||
for($i=0; $i<count($bodyParts); $i++) {
|
for($i=0; $i<$countBodyParts; $i++) {
|
||||||
if($i>0) {
|
if($i>0) {
|
||||||
$this->sessionData['body'] .= "<hr>";
|
$this->sessionData['body'] .= "<hr>";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user