fix PHP error in tracking, if no links given (e.g. in filemanager notifications)

This commit is contained in:
ralf 2024-05-08 08:36:43 +02:00
parent 62bceb7d15
commit 9059f66745

View File

@ -842,8 +842,11 @@ abstract class Tracking
$notification->set_sender($sender);
$notification->set_reply_to($reply_to);
$notification->set_subject($subject);
if ($link)
{
$notification->set_links(array($link));
$notification->set_popupdata($link['app']??$this->app, $link, $link['id']??null);
}
if ($attachments && is_array($attachments))
{
$notification->set_attachments($attachments);