From: Alan Knowles Date: Thu, 24 Mar 2016 04:05:46 +0000 (+0800) Subject: Report/SendEventErrors.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=6b78f177d274ca83b6c4430b73440ccd08eb4e36 Report/SendEventErrors.php --- diff --git a/Report/SendEventErrors.php b/Report/SendEventErrors.php index 47e2917..cb331ed 100644 --- a/Report/SendEventErrors.php +++ b/Report/SendEventErrors.php @@ -100,15 +100,15 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo $rcpt_ids = DB_DataObject::factory('groups')->lookupMembers("{$this->opts['group']}",'id'); $min = 0; - if (!empty($this->opts['uid'])) { - $events = DB_DataObject::factory('Events'); - $events->action = 'ERROR-REPORT-' . $this->opts['uid']; - $events->orderBy('id DESC'); - $events->limit(1); - if ($events->find(true)) { - $min = $events->id; - } + + $events = DB_DataObject::factory('Events'); + $events->action = 'ERROR-REPORT-' . $this->opts['uid']; + $events->orderBy('id DESC'); + $events->limit(1); + if ($events->find(true)) { + $min = $events->id; } + $events = DB_DataObject::factory('Events');