From ab7ac69e68474a8a6c15b2ce7ee96ab461ddf1e7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 21 Apr 2009 21:54:44 +0000 Subject: [PATCH] Force selection to fail when no traces match the tag. --- app/controllers/trace_controller.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.2