return TRUE;
}
else {
- CRM_Core_Error::fatal(ts('Petition Id and/or Activity Id is not of the type Positive.'));
- return FALSE;
+ throw new CRM_Core_Exception(ts('Petition Id and/or Activity Id is not of the type Positive.'));
}
}
$petitionInfo = [];
CRM_Campaign_BAO_Survey::retrieve($petitionParams, $petitionInfo);
if (empty($petitionInfo)) {
- CRM_Core_Error::fatal('Petition doesn\'t exist.');
+ throw new CRM_Core_Exception('Petition doesn\'t exist.');
}
//get the default domain email address.