mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-30 20:04:30 +01:00
fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given
This commit is contained in:
parent
30579b64a3
commit
94ae9e2d0d
@ -2291,8 +2291,8 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
||||
$content['mailDisplayBodySrc'] = Egw::link('/index.php',$linkData);
|
||||
$content['mail_displayattachments'] = $attachmentHTMLBlock;
|
||||
$content['mail_id']=$rowID;
|
||||
$content['mailDisplayContainerClass']=(count($attachments)?"mailDisplayContainer mailDisplayContainerFixedHeight":"mailDisplayContainer mailDisplayContainerFullHeight");
|
||||
$content['mailDisplayAttachmentsClass']=(count($attachments)?"mailDisplayAttachments":"mail_DisplayNone");
|
||||
$content['mailDisplayContainerClass']=!empty($attachments)?"mailDisplayContainer mailDisplayContainerFixedHeight":"mailDisplayContainer mailDisplayContainerFullHeight";
|
||||
$content['mailDisplayAttachmentsClass']=!empty($attachments)?"mailDisplayAttachments":"mail_DisplayNone";
|
||||
|
||||
// DRAG attachments actions
|
||||
$etpl->setElementAttribute('mail_displayattachments', 'actions', array(
|
||||
|
Loading…
Reference in New Issue
Block a user