From 3d73c504f76940ef755e88025802d7650d6d796c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 24 Mar 2016 12:21:00 +0800 Subject: [PATCH] Report/SendEventErrors.php --- Report/SendEventErrors.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Report/SendEventErrors.php b/Report/SendEventErrors.php index e765047..be2c368 100644 --- a/Report/SendEventErrors.php +++ b/Report/SendEventErrors.php @@ -111,14 +111,15 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo $min = 0; - $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; + if ($this->opts['uid'] != 'STD') { + $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'); -- 2.39.2