From: Richard Fairhurst Date: Mon, 4 Jun 2007 08:57:13 +0000 (+0000) Subject: TomH's 500 patch X-Git-Tag: live~8455 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/325aa7ecdf75b0995efebedb7bc288ede910894d?hp=daa326898e39ed0c74db5649ac73bb9e237a948b;ds=sidebyside TomH's 500 patch --- diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb index 4a29b4a40..4b785f8bc 100644 --- a/app/controllers/api_controller.rb +++ b/app/controllers/api_controller.rb @@ -195,6 +195,8 @@ class ApiController < ApplicationController list_of_way_segments = list_of_way_segs.collect { |way_seg| way_seg.segment_id } + else + list_of_way_segments = Array.new end # - [0] in case some thing links to segment 0 which doesn't exist. Shouldn't actually ever happen but it does. FIXME: file a ticket for this