Dan Brown

Fixed issue with users that have no avatar

...@@ -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
......