diff options
-rw-r--r-- | app/models/info_request.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index af5a3b27b..d3285116c 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -21,7 +21,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: info_request.rb,v 1.105 2008-05-09 01:00:42 francis Exp $ +# $Id: info_request.rb,v 1.106 2008-05-09 01:02:32 francis Exp $ require 'digest/sha1' require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian') @@ -109,7 +109,10 @@ public # Remove spaces from ends (for when used in emails etc.) def title title = read_attribute(:title) - title.strip + if title + title.strip! + end + return title end # Email which public body should use to respond to request. This is in |