mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-03 11:39:10 -04:00
if no email don't md5() it
This commit is contained in:
@@ -60,7 +60,7 @@ class User_Model_Core extends ORM implements User_Definition {
|
||||
*/
|
||||
public function avatar_url($size=80, $default=null) {
|
||||
return sprintf("//www.gravatar.com/avatar/%s.jpg?s=%d&r=pg%s",
|
||||
md5($this->email), $size, $default ? "&d=" . urlencode($default) : "");
|
||||
($this->email ? md5($this->email) : ''), $size, $default ? "&d=" . urlencode($default) : "");
|
||||
}
|
||||
|
||||
public function groups() {
|
||||
|
||||
Reference in New Issue
Block a user