Sent notifications for all enabled users
* Data was not properly addressed in aAccounts array Fixes #214
This commit is contained in:
parent
12f5467eab
commit
b08c02d384
@ -117,12 +117,12 @@ if (empty($aAllBlocks)) {
|
|||||||
// Notify users
|
// Notify users
|
||||||
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
|
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
|
||||||
if (is_array($aAccounts)) {
|
if (is_array($aAccounts)) {
|
||||||
foreach ($aAccounts as $account_id) {
|
foreach ($aAccounts as $aData) {
|
||||||
$aMailData['height'] = $aBlock['height'];
|
$aMailData['height'] = $aBlock['height'];
|
||||||
$aMailData['subject'] = 'New Block';
|
$aMailData['subject'] = 'New Block';
|
||||||
$aMailData['email'] = $user->getUserEmail($user->getUserName($account_id));
|
$aMailData['email'] = $user->getUserEmail($user->getUserName($aData['account_id']));
|
||||||
$aMailData['shares'] = $iRoundShares;
|
$aMailData['shares'] = $iRoundShares;
|
||||||
$notification->sendNotification($account_id, 'new_block', $aMailData);
|
$notification->sendNotification($aData['account_id'], 'new_block', $aMailData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user