Modified: trunk/app/views/messages/show.rhtml (2136 => 2137)
--- trunk/app/views/messages/show.rhtml 2009-03-26 12:30:22 UTC (rev 2136)
+++ trunk/app/views/messages/show.rhtml 2009-03-26 13:51:41 UTC (rev 2137)
@@ -18,7 +18,8 @@
</li>
</ul>
-<% if @message.reply? %>
+<% # this makes sure that the message is a reply to something, and that the original message still exists -%>
+<% if @message.reply? && @message.reply_to && address@hidden %>
<br/>
<p class="box_infotext">
<b>This message is a reply to:</b> <%= link_to h(@message.reply_to.subject), message_path(@message.reply_to) %>