Release Fixes

This commit is contained in:
JonatanRek
2020-03-25 15:58:47 +01:00
parent b2a8734ed3
commit 12212d6c56
11 changed files with 141 additions and 70 deletions

View File

@@ -31,8 +31,11 @@ class UserManager
}
}
public function getAvatarUrl(){
public function getAvatarUrl($userId = null){
$email = self::getUserData('email');
if ($userId != null){
$email = self::getUserData('email',$userId);
}
return 'https://secure.gravatar.com/avatar/' . md5( strtolower( trim( $email ) ) );
}