mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
fix PHP error in tracking, if no links given (e.g. in filemanager notifications)
This commit is contained in:
parent
ba744d3292
commit
e3d66c2cc6
@ -842,8 +842,11 @@ abstract class Tracking
|
|||||||
$notification->set_sender($sender);
|
$notification->set_sender($sender);
|
||||||
$notification->set_reply_to($reply_to);
|
$notification->set_reply_to($reply_to);
|
||||||
$notification->set_subject($subject);
|
$notification->set_subject($subject);
|
||||||
|
if ($link)
|
||||||
|
{
|
||||||
$notification->set_links(array($link));
|
$notification->set_links(array($link));
|
||||||
$notification->set_popupdata($link['app']??$this->app, $link, $link['id']??null);
|
$notification->set_popupdata($link['app']??$this->app, $link, $link['id']??null);
|
||||||
|
}
|
||||||
if ($attachments && is_array($attachments))
|
if ($attachments && is_array($attachments))
|
||||||
{
|
{
|
||||||
$notification->set_attachments($attachments);
|
$notification->set_attachments($attachments);
|
||||||
|
Loading…
Reference in New Issue
Block a user