From 817012042d5dd5f7bb24bf50600e841d31306852 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Thu, 8 Dec 2016 15:39:28 -0600 Subject: [PATCH] Fix contact for not logged in --- app/contact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/contact.rb b/app/contact.rb index f6563d19..38920d4b 100644 --- a/app/contact.rb +++ b/app/contact.rb @@ -25,7 +25,7 @@ post '/contact' do end end - if current_site.supporter? + if current_site && current_site.supporter? subject = "[Neocities Supporter Contact]: #{params[:subject]}" else subject = "[Neocities Contact]: #{params[:subject]}"