From 2b39b1f0cc5a04247abc938dda551e78c5f5cf9e Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Mon, 2 Jun 2014 17:49:45 +0100 Subject: Fix operator precedence Was switched to && for style but in fact for control flow, and is what we want. --- app/controllers/request_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/request_controller.rb') 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 -- cgit v1.2.3