]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/note_helper.rb
Fix padding
[rails.git] / app / helpers / note_helper.rb
index bfd7f493dfb8103b9d85b1b9187ce2bb7ec8b162..f2bff861f7209ae4f47504579efbec546430b8c3 100644 (file)
@@ -8,6 +8,10 @@ module NoteHelper
   end
 
   def note_author(author, link_options = {})
-    link_to h(author.display_name), link_options.merge({:controller => "user", :action => "view", :display_name => author.display_name})
+    if author.nil?
+      ""
+    else
+      link_to h(author.display_name), link_options.merge({:controller => "user", :action => "view", :display_name => author.display_name})
+    end
   end
 end