diff options
author | francis <francis> | 2008-03-31 19:15:30 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-31 19:15:30 +0000 |
commit | b11552addb3def9272261cfb804591a4687ce8e1 (patch) | |
tree | 06a6174a3c9b49330de417b00becffee409f3541 | |
parent | faf4fe328dc7cb5b1716330e11e0dd0e31dde198 (diff) |
Fix error in null search.
-rw-r--r-- | app/controllers/general_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 9b6f9dfd2..4eb671af6 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -5,7 +5,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: general_controller.rb,v 1.12 2008-03-31 17:38:10 francis Exp $ +# $Id: general_controller.rb,v 1.13 2008-03-31 19:15:30 francis Exp $ class GeneralController < ApplicationController @@ -41,7 +41,7 @@ class GeneralController < ApplicationController def search_redirect @query = params[:query] @sortby = params[:sortby] - if @query.empty? + if @query.nil? or @query.empty? @query = nil render :action => "search" else |