Skip to content

Commit

Permalink
Merge f7c897e into 3855d15
Browse files Browse the repository at this point in the history
  • Loading branch information
SylviaKaks authored Oct 25, 2022
2 parents 3855d15 + f7c897e commit d8679bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/editor_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def rich
@main_image = Image.find_by(id: params[:main_image]).path
end

if params[:tags]&.include? "lat:" and params[:tags]&.include? "lon:"
if params[:tags]&.include?("lat:") && params[:tags]&.include?("lon:")
tags = params[:tags].split(',')
tags.each do |x|
x.include? "lat:" and (@lat = x.split(':')[1])
Expand Down

0 comments on commit d8679bd

Please sign in to comment.