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 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'