Add anonymous check for users on block finder email notification
This commit is contained in:
parent
933660806b
commit
b033a9888b
@ -157,8 +157,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)) {
|
||||||
|
if ($user->getUserNameAnon($iAccountId) == 1) {
|
||||||
|
$finder = "Anonymous";
|
||||||
|
} else {
|
||||||
|
$finder = $user->getUserName($iAccountId);
|
||||||
|
}
|
||||||
|
|
||||||
$finder = $user->getUserName($iAccountId);
|
|
||||||
foreach ($aAccounts as $aData) {
|
foreach ($aAccounts as $aData) {
|
||||||
$aMailData['height'] = $aBlock['height'];
|
$aMailData['height'] = $aBlock['height'];
|
||||||
$aMailData['subject'] = 'New Block';
|
$aMailData['subject'] = 'New Block';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user