Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Commit

Permalink
Fix bug 760631: Do not link users with blank website fields.
Browse files Browse the repository at this point in the history
Changes the check for existence of a user's website to check for truthy
values rather than just for values that aren't None.
  • Loading branch information
Michael Kelly committed Oct 30, 2012
1 parent 50431e6 commit e234b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/badges/templates/badges/include/leaderboard.html
Expand Up @@ -33,7 +33,7 @@ <h4>
<li>
<span class="download-number">{{ standing.ranking|babel_number }}</span>
<span class="display-name">
{% if standing.user.userprofile.website is not none
{% if standing.user.userprofile.website
and standing.user.has_perm('users.can_share_website') %}
<a href="{{ standing.user.userprofile.website }}">
{{ display_name(standing.user) }}
Expand Down

0 comments on commit e234b0a

Please sign in to comment.