Return the notification at the end :shock:

This commit is contained in:
Joas Schilling 2015-09-01 18:00:07 +02:00
Родитель 1ac644c753
Коммит cc89633ee4
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -229,13 +229,13 @@ class Handler {
->setObject($row['object_type'], (int) $row['object_id']) ->setObject($row['object_type'], (int) $row['object_id'])
->setSubject($row['subject'], (array) json_decode($row['subject_parameters'], true)); ->setSubject($row['subject'], (array) json_decode($row['subject_parameters'], true));
if ($row['message']) { if ($row['message'] !== '') {
$notification->setMessage($row['message'], (array) json_decode($row['message_parameters'], true)); $notification->setMessage($row['message'], (array) json_decode($row['message_parameters'], true));
} }
if ($row['link']) { if ($row['link'] !== '') {
$notification->setLink($row['link']); $notification->setLink($row['link']);
} }
if ($row['icon']) { if ($row['icon'] !== '') {
$notification->setIcon($row['icon']); $notification->setIcon($row['icon']);
} }
@ -249,5 +249,7 @@ class Handler {
} }
$notification->addAction($action); $notification->addAction($action);
} }
return $notification;
} }
} }