Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2015-12-14 20:30:40 +0000
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
123dc115837b2d82f1a93e54f180bf23444bfc17
123dc115
1 parent
93223fcd
Fixed issue with users that have no avatar
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/User.php
app/User.php
View file @
123dc11
...
...
@@ -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
);
}
...
...
Please
register
or
sign in
to post a comment