diff options
author | Jonne Haß <me@jhass.eu> | 2015-08-06 23:56:30 +0300 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2015-08-06 23:56:30 +0300 |
commit | 480384a07773904a88e04bdbb1aea33d596edcaf (patch) | |
tree | 9e09f48e7a6f8fe14c823f771112950d0962a745 /app/helpers | |
parent | 0aa453e437d422c2fb2bac39f73fe50005be5b9a (diff) | |
parent | dc576fb0d615db3d2a4626ff3c85bcd4483d910a (diff) |
Merge branch 'stable' into develop
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/people_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/people_helper.rb b/app/helpers/people_helper.rb index f31c658cd..35c26f936 100644 --- a/app/helpers/people_helper.rb +++ b/app/helpers/people_helper.rb @@ -32,6 +32,7 @@ module PeopleHelper end def person_image_tag(person, size = :thumb_small) + return "" if person.nil? || person.profile.nil? image_tag(person.profile.image_url(size), alt: person.name, class: "avatar img-responsive center-block", title: person.name, "data-person_id" => person.id) end |