From: <jh...@us...> - 2011-01-13 17:47:27
|
Revision: 251 http://etch.svn.sourceforge.net/etch/?rev=251&view=rev Author: jheiss Date: 2011-01-13 17:47:20 +0000 (Thu, 13 Jan 2011) Log Message: ----------- Don't throw an exception if session is not defined. I'm not really sure why it wouldn't be defined, but it seems to happen occasionally, particularly with the "GET /" healthcheck requests from the load balancers. Modified Paths: -------------- trunk/server/app/views/layouts/application.html.erb Modified: trunk/server/app/views/layouts/application.html.erb =================================================================== --- trunk/server/app/views/layouts/application.html.erb 2011-01-13 17:37:04 UTC (rev 250) +++ trunk/server/app/views/layouts/application.html.erb 2011-01-13 17:47:20 UTC (rev 251) @@ -17,7 +17,7 @@ <div id="header"> <p id="account_links"> -<%- if session[:account_id] -%> +<%- if session && session[:account_id] -%> Welcome back, <%= link_to logged_in_account.name, account_path(logged_in_account) %>! | <%= link_to "Help", "http://etch.sourceforge.net/" %> | <%= link_to "Logout", :controller => 'login', :action => 'logout' %> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |