Fix for registration confirmation

This commit is contained in:
Godwin
2016-07-10 19:51:59 -07:00
parent b18dbbed49
commit 450bb6a8f7
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -558,7 +558,7 @@ class ConferencesController < ApplicationController
@errors[:name] = :empty
end
if params[:location].present? && params[:location].gsub(/[\s\W]/, '').present? && (l = Geocoder.search(params[:location], params: { language: 'en' })).present?
if params[:location].present? && params[:location].gsub(/[\s\W]/, '').present? && (l = Geocoder.search(params[:location], language: 'en')).present?
corrected = view_context.location(l.first)
if corrected.present?