Could we move this logic to the template?  I've personally never been a fan of the $real variable names.  I know its picky.  Something like the following might work.

<% unless @report_server == @server %>report_server=<%= @report_server %><%end%>

Or something similar.  What do you think?