Skip to content
Browse files

bugfix for activities

  • Loading branch information...
1 parent cbd2c29 commit 0ed1307259c9372b73d260aae5b56cfd0dc355a4 Raphaela Wrede committed Apr 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 engines/adva_activity/app/helpers/activities_helper.rb
View
4 engines/adva_activity/app/helpers/activities_helper.rb
@@ -57,14 +57,14 @@ def activity_object_edit_url(activity)
# type = activity.object_attributes['commentable_type']
# send "edit_admin_#{type}_path".downcase, activity.site_id, activity.section_id, activity.commentable_id
# end
-
+
# FIXME not used anywhere?
# def link_to_activity_commentable(activity)
# link_to truncate(activity.commentable_title, 100), activity_commentable_url(activity)
# end
def link_to_activity_user(activity)
- if activity.author.registered?
+ if activity.author && activity.author.registered?
link_to activity.author_name, admin_site_user_path(activity.author)
else
activity.author_link(:include_email => true)

0 comments on commit 0ed1307

Please sign in to comment.
Something went wrong with that request. Please try again.