Commit d7d70f16a99338d4a37d5e124c3c7299559efb00

Authored by AntonioTerceiro
1 parent 5feffa49

ActionItem21: don't call a method before you know that there is an object to receive the call



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@985 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/cms/view.rhtml
... ... @@ -51,7 +51,7 @@
51 51  
52 52 <ul>
53 53 <li>
54   - <%= _('"%{article}", last changed by %{author}') % { :article => @article.name, :author => (@article.last_changed_by.name || _('Unknown User')) } %>
  54 + <%= _('"%{article}", last changed by %{author}') % { :article => @article.name, :author => (@article.last_changed_by ? @article.last_changed_by.name : _('Unknown User')) } %>
55 55 </li>
56 56 <li>
57 57 <%= _('Public address of this article: %s') % (@article.public_path) %>
... ...