X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2ef58f47a232c8a8156dd148616c198790e489d2..250a068b066c8968047ed90c2de64a47f9301c7d:/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