function initEmails($templateDir, $emails)
{
- print_r('die here');exit;
+
$pg = HTML_FlexyFramework::get()->page;
foreach($emails as $name=>$data) {
$cm = DB_DataObject::factory('core_email');
$this->jerr("bcc_group {$data['bcc_group']} does not exist when importing template $name");
}
+
if (!$g->members('email')) {
$this->jerr("bcc_group {$data['bcc_group']} does not have any members");
}