check if notifications exist at all
This commit is contained in:
parent
d20efb3caa
commit
9eeb088734
@ -46,6 +46,7 @@ if (empty($aWorkers)) {
|
|||||||
|
|
||||||
// We notified, lets check which recovered
|
// We notified, lets check which recovered
|
||||||
$aNotifications = $notification->getAllActive();
|
$aNotifications = $notification->getAllActive();
|
||||||
|
if (!empty($aNotifications)) {
|
||||||
foreach ($aNotifications as $aNotification) {
|
foreach ($aNotifications as $aNotification) {
|
||||||
$aData = json_decode($aNotification['data'], true);
|
$aData = json_decode($aNotification['data'], true);
|
||||||
$aWorker = $worker->getWorker($aData['id']);
|
$aWorker = $worker->getWorker($aData['id']);
|
||||||
@ -57,5 +58,5 @@ foreach ($aNotifications as $aNotification) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user