aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb@seb-laptop-acer.(none)>2010-11-23 09:58:05 +0000
committerSeb Bacon <seb@seb-laptop-acer.(none)>2010-11-23 09:58:05 +0000
commitee067d86eea2ae66595bffa3abd6c3c0a2c4753c (patch)
tree1f572fe0008a308c8fe32f6b3772374a9f2fa7ff
parent72bff5a10bde7c46a5b4c7a308d5dc6b5e138539 (diff)
Make default value an empty string, not nil (which is assumed to be an unset value)
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index f6f99573e..8af2af528 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -213,7 +213,7 @@ class ApplicationController < ActionController::Base
#
def check_read_only
- read_only = MySociety::Config.get('READ_ONLY', nil)
+ read_only = MySociety::Config.get('READ_ONLY', '')
if !read_only.empty?
flash[:notice] = "<p>WhatDoTheyKnow is currently in maintenance. You can only view existing requests. You cannot make new ones, add followups or annotations, or otherwise change the database.</p> <p>" + read_only + "</p>"
redirect_to frontpage_url