From a058ae02f45a3d64639abf82a3ca68aa767ce60d Mon Sep 17 00:00:00 2001 From: Logan Hanks Date: Thu, 19 Apr 2012 17:08:55 -0700 Subject: [PATCH] Fix error when a link has flair_text but not flair_css_class. --- r2/r2/templates/link.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r2/r2/templates/link.html b/r2/r2/templates/link.html index 67ae2f2e6..f7e323482 100644 --- a/r2/r2/templates/link.html +++ b/r2/r2/templates/link.html @@ -79,9 +79,10 @@ <%def name="flair()"> - %if c.user.pref_show_link_flair and (thing.flair_text or thing.flair_css_class): + <% css = thing.flair_css_class or '' %> + %if c.user.pref_show_link_flair and (thing.flair_text or css): ## TODO: clean this up - + ${thing.flair_text} %endif