Skip to content

Commit

Permalink
Add anonymous check for users on block finder email notification
Browse files Browse the repository at this point in the history
  • Loading branch information
owlhooter authored and xisi committed Jun 19, 2015
1 parent f76ee0c commit 40d0ecd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cronjobs/findblock.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,12 @@
// Notify users
$aAccounts = $notification->getNotificationAccountIdByType('new_block');
if (is_array($aAccounts)) {

$finder = $user->getUserName($iAccountId);
if ($user->getUserNameAnon($iAccountId) == 1) {
$finder = "Anonymous";
} else {
$finder = $user->getUserName($iAccountId);
}

foreach ($aAccounts as $aData) {
$aMailData['height'] = $aBlock['height'];
$aMailData['subject'] = 'New Block';
Expand Down

0 comments on commit 40d0ecd

Please sign in to comment.