Fix notifications with same id but no links are not getting grouped together

This commit is contained in:
Hadi Nategh
2018-07-23 16:24:47 +02:00
parent 5a9804ed86
commit c5e902926b
4 changed files with 11 additions and 8 deletions

View File

@@ -201,7 +201,7 @@ class notifications_ajax {
'created' => Api\DateTime::to($notification['notify_created']),
'current' => new DateTime(),
'actions' => is_array($actions)?$actions:NULL,
'extra_data' => $data['data']
'extra_data' => ($data['data'] ? $data['data'] : array())
);
}