From 40d0ecd769768d7c402cedf133d9778d7b79a917 Mon Sep 17 00:00:00 2001 From: owlhooter Date: Wed, 27 May 2015 09:02:50 -0500 Subject: [PATCH] Add anonymous check for users on block finder email notification --- cronjobs/findblock.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cronjobs/findblock.php b/cronjobs/findblock.php index 75991e94..eb848180 100755 --- a/cronjobs/findblock.php +++ b/cronjobs/findblock.php @@ -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';