]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
93223fc
)
Fixed issue with users that have no avatar
author
Dan Brown
<redacted>
Mon, 14 Dec 2015 20:30:40 +0000
(20:30 +0000)
committer
Dan Brown
<redacted>
Mon, 14 Dec 2015 20:30:40 +0000
(20:30 +0000)
app/User.php
patch
|
blob
|
history
diff --git
a/app/User.php
b/app/User.php
index 12b502adc7b62ac54c82d8f1b032e6ae20e263ac..1be98c3c46d86230b220574414acb863adf216d4 100644
(file)
--- a/
app/User.php
+++ b/
app/User.php
@@
-145,7
+145,7
@@
class User extends Model implements AuthenticatableContract, CanResetPasswordCon
*/
public function getAvatar($size = 50)
{
- if ($this->image_id === 0 || $this->image_id === null) return '/user_avatar.png';
+ if ($this->image_id === 0 || $this->image_id ===
'0' || $this->image_id ===
null) return '/user_avatar.png';
return $this->avatar->getThumb($size, $size, false);
}