X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1d06a4eef19bc91c11543f09648788593302e364..4e9fcb9b91b981fe8a8b5d67082b8a941fb7e9ff:/app/views/user/diary.rhtml diff --git a/app/views/user/diary.rhtml b/app/views/user/diary.rhtml index abe896db9..a5a91ee0f 100644 --- a/app/views/user/diary.rhtml +++ b/app/views/user/diary.rhtml @@ -1,5 +1,5 @@

<%= @this_user.display_name %>'s diary

-<% if @this_user.id == @user.id %> +<% if @user and @this_user.id == @user.id %> <%= link_to 'new post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %> <% end %>