X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/ae27f7adbe561b20203fa639ac1aa50d0408edc0..8090e086daad67eac711ad6fd6a5eba6f28d44fd:/app/controllers/notes_controller.rb diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index 0544f8705..e470bdbea 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -84,7 +84,7 @@ class NotesController < ApplicationController def comment # Check the arguments are sane raise OSM::APIBadUserInput.new("No id was given") unless params[:id] - raise OSM::APIBadUserInput.new("No text was given") unless params[:text] + raise OSM::APIBadUserInput.new("No text was given") if params[:text].blank? # Extract the arguments id = params[:id].to_i