Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -145,7 +145,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon | ... | @@ -145,7 +145,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon |
| 145 | */ | 145 | */ |
| 146 | public function getAvatar($size = 50) | 146 | public function getAvatar($size = 50) |
| 147 | { | 147 | { |
| 148 | - if ($this->image_id === 0 || $this->image_id === null) return '/user_avatar.png'; | 148 | + if ($this->image_id === 0 || $this->image_id === '0' || $this->image_id === null) return '/user_avatar.png'; |
| 149 | return $this->avatar->getThumb($size, $size, false); | 149 | return $this->avatar->getThumb($size, $size, false); |
| 150 | } | 150 | } |
| 151 | 151 | ... | ... |
-
Please register or sign in to post a comment