From: Tom Hughes Date: Tue, 21 Apr 2009 21:54:44 +0000 (+0000) Subject: Force selection to fail when no traces match the tag. X-Git-Tag: live~7520 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ab7ac69e68474a8a6c15b2ce7ee96ab461ddf1e7 Force selection to fail when no traces match the tag. --- diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 47a31d314..e6c732d2d 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -60,6 +60,8 @@ class TraceController < ApplicationController if files.length > 0 conditions[0] += " AND gpx_files.id IN (#{files.join(',')})" + else + conditions[0] += " AND 0 = 1" end end