changeset 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 b1fa2f0ac9d8
children 7fd36e4a99a1 d41bf754c0f2 b96d3005ee79 548e23d4cd71
files vendor/plugins/redmine_bibliography/app/views/users/show.rhtml
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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? %>