$this->authUser = $au;
return true;
}
-
+
function get($args, $opts)
{
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($this, 'onPearError'));
}
$g = DB_DataObject::Factory('Groups')->lookup('name',$data['bcc_group']);
- if (!$g) {
+ if (empty($g->id)) {
$this->jerr("bcc_group {$data['bcc_group']} does not exist when importing template $name");
}
- print_R($g);
- if ($g->members('email')) {
- $this->jerr("bcc_group {$data['bcc_group']} does not have any members");
+
+
+ if (!$g->members('email')) {
+ $this->jerr("bcc_group {$data['bcc_group']} does not have any members");
}
- print_R($g->members('email'));exit;
$cm->bcc_group = $g->id;
}