Display the right title for friends' changesets
authorTom Hughes <tom@compton.nu>
Fri, 16 Dec 2011 08:29:19 +0000 (08:29 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 16 Dec 2011 08:29:19 +0000 (08:29 +0000)
app/controllers/changeset_controller.rb

index 7dd7006..b736e33 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'