diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-06-02 17:49:45 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-06-02 17:49:45 +0100 |
commit | 2b39b1f0cc5a04247abc938dda551e78c5f5cf9e (patch) | |
tree | 90e8aa06d6ff1f678a50e3281eb96e18390dd8ce | |
parent | be5e24bc207bc3306ccbb2104e3cf26002469b1d (diff) |
Fix operator precedence
Was switched to && for style but in fact for control flow, and is
what we want.
-rw-r--r-- | app/controllers/request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 125791ef8..55a03e7b4 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -306,7 +306,7 @@ class RequestController < ApplicationController # Check we have :public_body_id - spammers seem to be using :public_body # erroneously instead if params[:info_request][:public_body_id].blank? - redirect_to frontpage_path && return + redirect_to frontpage_path and return end # See if the exact same request has already been submitted |