fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given

This commit is contained in:
Ralf Becker 2021-11-05 15:12:40 +01:00
parent 30579b64a3
commit 94ae9e2d0d

View File

@ -2291,8 +2291,8 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
$content['mailDisplayBodySrc'] = Egw::link('/index.php',$linkData); $content['mailDisplayBodySrc'] = Egw::link('/index.php',$linkData);
$content['mail_displayattachments'] = $attachmentHTMLBlock; $content['mail_displayattachments'] = $attachmentHTMLBlock;
$content['mail_id']=$rowID; $content['mail_id']=$rowID;
$content['mailDisplayContainerClass']=(count($attachments)?"mailDisplayContainer mailDisplayContainerFixedHeight":"mailDisplayContainer mailDisplayContainerFullHeight"); $content['mailDisplayContainerClass']=!empty($attachments)?"mailDisplayContainer mailDisplayContainerFixedHeight":"mailDisplayContainer mailDisplayContainerFullHeight";
$content['mailDisplayAttachmentsClass']=(count($attachments)?"mailDisplayAttachments":"mail_DisplayNone"); $content['mailDisplayAttachmentsClass']=!empty($attachments)?"mailDisplayAttachments":"mail_DisplayNone";
// DRAG attachments actions // DRAG attachments actions
$etpl->setElementAttribute('mail_displayattachments', 'actions', array( $etpl->setElementAttribute('mail_displayattachments', 'actions', array(