From d1d392a44861349ef0e0b0bff5f2095cbb004429 Mon Sep 17 00:00:00 2001 From: owlhooter Date: Wed, 27 May 2015 09:04:41 -0500 Subject: [PATCH] Add anonymous check for users on block finder email notification --- include/classes/user.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/classes/user.class.php b/include/classes/user.class.php index b7b56da6..2c8a4d29 100644 --- a/include/classes/user.class.php +++ b/include/classes/user.class.php @@ -31,6 +31,9 @@ class User extends Base { public function getUserName($id) { return $this->getSingle($id, 'username', 'id'); } + public function getUserNameAnon($id) { + return $this->getSingle($id, 'is_anonymous', 'id'); + } public function getUserNameByEmail($email) { return $this->getSingle($email, 'username', 'email', 's'); }