From ee067d86eea2ae66595bffa3abd6c3c0a2c4753c Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Tue, 23 Nov 2010 09:58:05 +0000 Subject: Make default value an empty string, not nil (which is assumed to be an unset value) --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') 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] = "

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.

" + read_only + "

" redirect_to frontpage_url -- cgit v1.2.3