public static function del($params) {
//delete from contribution soft table
$contributionSoft = new CRM_Contribute_DAO_ContributionSoft();
- $contributionSoft->id = $params['id'];
+ $contributionSoft->id = CRM_Utils_Array::value('id', $params);
if (!$contributionSoft->find()) {
return FALSE;
}
$msgs = array();
if ($this->_webtest) {
- throw new Exception("Not implementated: getAllMessages for WebTest");
+ throw new Exception("Not implemented: getAllMessages for WebTest");
}
else {
$dao = CRM_Core_DAO::executeQuery('SELECT headers, body FROM civicrm_mailing_spool ORDER BY id');
*/
public function clearMessages($limit = 1) {
if ($this->_webtest) {
- throw new Exception("Not implementated: clearMessages for WebTest");
+ throw new Exception("Not implemented: clearMessages for WebTest");
}
else {
CRM_Core_DAO::executeQuery('DELETE FROM civicrm_mailing_spool ORDER BY id DESC LIMIT ' . $limit);