mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Release Fixes
This commit is contained in:
1 parent
b2a8734ed3
commit
12212d6c56
11 files changed
+141
-70
No files matched your search
@@ -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 ) ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user