# HG changeset patch # User Chris Cannam # Date 1316512646 -3600 # Node ID 37e39e437b2c30e83598befa496dc6133483c46a # Parent b1fa2f0ac9d8cee9732ea65586a62b58fd89b64c Fix #309 (500 internal error on user page) diff -r b1fa2f0ac9d8 -r 37e39e437b2c vendor/plugins/redmine_bibliography/app/views/users/show.rhtml --- a/vendor/plugins/redmine_bibliography/app/views/users/show.rhtml Mon Sep 19 17:03:29 2011 +0100 +++ b/vendor/plugins/redmine_bibliography/app/views/users/show.rhtml Tue Sep 20 10:57:26 2011 +0100 @@ -43,6 +43,7 @@
+ <% if @user.author %>
<% @publications = Publication.all(:include => :authors, :conditions => "authors.id = #{@user.author.id}") %> @@ -65,7 +66,7 @@ <% end %>
- + <% end %> <% unless @events_by_day.empty? %>