X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2ef58f47a232c8a8156dd148616c198790e489d2..1107787f08ee0dd264ea3c7538081b9cf7205e8f:/app/helpers/note_helper.rb diff --git a/app/helpers/note_helper.rb b/app/helpers/note_helper.rb index bfd7f493d..f2bff861f 100644 --- a/app/helpers/note_helper.rb +++ b/app/helpers/note_helper.rb @@ -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