aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/exim_log.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-08-23 17:49:01 +0100
committerLouise Crow <louise.crow@gmail.com>2012-08-23 17:49:01 +0100
commit5ea4882f38bcf18016c82c1e6119c4df5237e96e (patch)
treea393c38b8b4273eee7f4a693c6f4c7a7bd55266f /app/models/exim_log.rb
parentdb8bb7fa5440855420b8f3ce24611a766e52f89e (diff)
parenta311a1892507aacec5bfb2837dd10f5257dfb42c (diff)
Merge remote-tracking branch 'origin/release/0.6.4' into wdtk
Conflicts: app/views/request/show.rhtml spec/models/info_request_spec.rb
Diffstat (limited to 'app/models/exim_log.rb')
-rw-r--r--app/models/exim_log.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/exim_log.rb b/app/models/exim_log.rb
index 60faa7f0b..82000efa1 100644
--- a/app/models/exim_log.rb
+++ b/app/models/exim_log.rb
@@ -94,7 +94,7 @@ class EximLog < ActiveRecord::Base
# Get all requests sent for from 2 to 10 days ago. The 2 day gap is
# because we load exim log lines via cron at best an hour after they
# are made)
- irs = InfoRequest.find(:all, :conditions => [ "created_at < ? and created_at > ?", Time.now() - 2.day, Time.now() - 10.days ] )
+ irs = InfoRequest.find(:all, :conditions => [ "created_at < ? and created_at > ? and user_id is not null", Time.now() - 2.day, Time.now() - 10.days ] )
# Go through each request and check it
ok = true