]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Display the right title for friends' changesets
[rails.git] / app / controllers / changeset_controller.rb
index 7dd7006fe67bb71e4e605c5228712ae0d0a25260..b736e332b04431d3e6e0cc1cb76484c406fd313f 100644 (file)
@@ -291,7 +291,7 @@ class ChangesetController < ApplicationController
         user_link = render_to_string :partial => "user", :object => user
       end
       
-      if params[:friends] and user
+      if params[:friends] and @user
         @title =  t 'changeset.list.title_friend'
         @heading =  t 'changeset.list.heading_friend'
         @description = t 'changeset.list.description_friend'