Mercurial > hg > soundsoftware-site
diff vendor/plugins/redmine_bibliography/app/views/users/show.rhtml @ 708:37e39e437b2c live
Fix #309 (500 internal error on user page)
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 20 Sep 2011 10:57:26 +0100 |
parents | f098cfb33721 |
children | 7c7ef64e68da |
line wrap: on
line diff
--- 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 @@ <div class="splitcontentright"> + <% if @user.author %> <div id="bibliography"> <% @publications = Publication.all(:include => :authors, :conditions => "authors.id = #{@user.author.id}") %> @@ -65,7 +66,7 @@ </dd> <% end %> </div> - + <% end %> <% unless @events_by_day.empty? %>