X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/bddb7dd8f9f685afade553b9b5badd6fa6497cf8..d3671694794bafb476b990525db3e2db2dae1bef:/app/views/trace/_trace_header.rhtml?ds=sidebyside

diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml
index f739d9053..cab6f7124 100644
--- a/app/views/trace/_trace_header.rhtml
+++ b/app/views/trace/_trace_header.rhtml
@@ -17,9 +17,9 @@
   <% end %>
 </p>
 
-<% if @user and @user.traces.count(:conditions => "inserted=0") > 4 %>
+<% if @user and @user.traces.count(:conditions => ["inserted=?", false]) > 4 %>
   <p>
-    You have <%= @user.traces.count(:conditions => "inserted=0") %> traces 
+    You have <%= @user.traces.count(:conditions => ["inserted=?", false]) %> traces 
     waiting for upload. Please consider waiting for these to finish before 
     uploading any more, so as not to block the queue for other users.
   </p>