From ec328801e9c5b0d83d646dbbaf6a10c79223019a Mon Sep 17 00:00:00 2001 From: Steve Coast Date: Tue, 8 May 2007 07:53:39 +0000 Subject: [PATCH] return blank if no nodes found --- app/controllers/api_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index bb135a01f..820a5cb66 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -60,6 +60,11 @@ class ApiController < ApplicationController report_error("You requested too many nodes (limit is 50,000). Either request a smaller area, or use planet.osm") end + if node_ids.length == 0 + render :text => '' + return + end + # grab the segments segments = Array.new if node_ids.length > 0 -- 2.43.2