diff --git a/app/views/layouts/mobile.m.erb b/app/views/layouts/mobile.m.erb index 42c1c81e..79836850 100644 --- a/app/views/layouts/mobile.m.erb +++ b/app/views/layouts/mobile.m.erb @@ -12,7 +12,7 @@ <%= @page_title %> <% if !(@new_mobile || @edit_mobile) - if !current_user.prefs.nil? -%> + if current_user && !current_user.prefs.nil? -%>

<%= @down_count %> <%= l(Date.today, :format => current_user.prefs.title_date_format) -%>

<%= yield -%> -
<% if !current_user.prefs.nil? -%> +
<% if current_user && !current_user.prefs.nil? -%>