From: Alan Knowles Date: Thu, 24 Mar 2016 03:56:58 +0000 (+0800) Subject: Report/SendEventErrors.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=8ffc35060372b22bec6bcbf5eb024ad0514ebf0c Report/SendEventErrors.php --- diff --git a/Report/SendEventErrors.php b/Report/SendEventErrors.php index fef9b5f..8e16c11 100644 --- a/Report/SendEventErrors.php +++ b/Report/SendEventErrors.php @@ -28,6 +28,7 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo 'min' => 1, 'max' => 1, ), + 'subject' => array( 'desc' => 'email subject', 'short' => 's', @@ -85,10 +86,17 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo $rcpts = DB_DataObject::factory('groups')->lookupMembers("{$this->opts['group']}",'email'); + if(empty($rcpts)){ $this->jerr("{$this->opts['group']} does not has any memeber"); } + $rcpt_ids = DB_DataObject::factory('groups')->lookupMembers("{$this->opts['group']}",'id'); + + // see the last date of notification to these users... + + + $events = DB_DataObject::factory('Events'); $events->selectAdd(); $events->selectAdd("