if (empty($this->email)) {
return true;
}
+ // this only applies to our owner company..
+ $c = DB_DataObject::factory('core_company');
+ if ($c->comptype_name != 'OWNER') {
+ return true;
+ }
+
+
$xx = DB_Dataobject::factory($this->tableName());
$xx->setFrom(array(
'email' => $this->email,