Add anonymous check for users on block finder email notification

This commit is contained in:
owlhooter 2015-05-27 09:02:50 -05:00 committed by Joey
parent f76ee0c66b
commit 40d0ecd769

View File

@ -157,8 +157,12 @@ if (empty($aAllBlocks)) {
// 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';