Skip to content

Commit

Permalink
Merge pull request #404 from paulrooney/master
Browse files Browse the repository at this point in the history
PHP 8.0 | Fix Undefined array key warnings during cron
  • Loading branch information
adixon authored Jan 9, 2023
2 parents 2366511 + 45ac1b9 commit 451e686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v3/Job/Iatsrecurringcontributions.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function civicrm_api3_job_Iatsrecurringcontributions($params) {
$error_count = 0;
$output = [];
$settings = Civi::settings()->get('iats_settings');
$receipt_recurring = $settings['receipt_recurring'];
$receipt_recurring = $settings['receipt_recurring'] ?? null;
$email_failure_report = empty($settings['email_recurring_failure_report']) ? '' : $settings['email_recurring_failure_report'];
// By default, after 3 failures move the next scheduled contribution date forward.
$failure_threshhold = empty($settings['recurring_failure_threshhold']) ? 3 : (int) $settings['recurring_failure_threshhold'];
Expand Down
2 changes: 1 addition & 1 deletion api/v3/Job/Iatsverify.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _civicrm_api3_job_iatsverify_spec(&$spec) {
function civicrm_api3_job_iatsverify($params) {

$settings = Civi::settings()->get('iats_settings');
$receipt_recurring = $settings['receipt_recurring'];
$receipt_recurring = $settings['receipt_recurring'] ?? null;
define('IATS_VERIFY_DAYS', 30);
// I've added an extra 2 days when getting candidates from CiviCRM to be sure i've got them all.
$verify_days = IATS_VERIFY_DAYS + 2;
Expand Down

0 comments on commit 451e686

Please sign in to comment.