mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:07 +01:00
fix PHP 8.0 error forwarding mail as attachment (calling count on null)
This commit is contained in:
parent
e36ad76b80
commit
60536222ce
@ -118,6 +118,8 @@ function egw_exception_handler($e)
|
||||
$message = '<h3>'.Api\Html::htmlspecialchars($headline)."</h3>\n".
|
||||
'<pre><b>'.Api\Html::htmlspecialchars($e->getMessage())."</b>\n\n";
|
||||
|
||||
echo $e->getFile().' ('.$e->getLine().")\n";
|
||||
|
||||
// only show trace (incl. function arguments) if explicitly enabled, eg. on a development system
|
||||
if ($GLOBALS['egw_info']['server']['exception_show_trace'])
|
||||
{
|
||||
|
@ -2022,7 +2022,7 @@ class mail_compose
|
||||
'size' => $_size,
|
||||
'folder' => $_folder,
|
||||
'winmailFlag' => $_is_winmail,
|
||||
'tmp_name' => mail_ui::generateRowID($this->mail_bo->profileID, $_folder, $_uid).'_'.(!empty($_partID)?$_partID:count($this->sessionData['attachments'])+1),
|
||||
'tmp_name' => mail_ui::generateRowID($this->mail_bo->profileID, $_folder, $_uid).'_'.(!empty($_partID)?$_partID:count($this->sessionData['attachments'] ?? [])+1),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user