From c0f9acff010c03fd1bc4d97ec26619d1740e1f76 Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 19 Dec 2016 13:17:45 +0530 Subject: [PATCH] CRM-18472: notice fixes --- CRM/Contribute/BAO/ContributionSoft.php | 2 +- tests/phpunit/CiviTest/CiviMailUtils.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/BAO/ContributionSoft.php b/CRM/Contribute/BAO/ContributionSoft.php index 5d835e957009..ced6fd4d1cec 100644 --- a/CRM/Contribute/BAO/ContributionSoft.php +++ b/CRM/Contribute/BAO/ContributionSoft.php @@ -230,7 +230,7 @@ public static function retrieve(&$params, &$defaults) { 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; } diff --git a/tests/phpunit/CiviTest/CiviMailUtils.php b/tests/phpunit/CiviTest/CiviMailUtils.php index 3c3dadf09da6..5ef5280f7a5a 100644 --- a/tests/phpunit/CiviTest/CiviMailUtils.php +++ b/tests/phpunit/CiviTest/CiviMailUtils.php @@ -191,7 +191,7 @@ public function getAllMessages($type = 'raw') { $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'); @@ -336,7 +336,7 @@ public function assertSubjects($expectedSubjects) { */ 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);