summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--askbot/templates/user_profile/user_stats.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/askbot/templates/user_profile/user_stats.html b/askbot/templates/user_profile/user_stats.html
index aa5aa07e..c042b5fb 100644
--- a/askbot/templates/user_profile/user_stats.html
+++ b/askbot/templates/user_profile/user_stats.html
@@ -124,7 +124,7 @@
</span>
<ul id="badge-context-{{ badge.id }}" class="badge-context-list" style="display:none">
{% for award in badge_user_awards %}
- {% if award.content_object_is_post %}
+ {% if award.content_object and award.content_object_is_post %}
<li>
<a
title="{{ award.content_object.get_snippet()|collapse }}"