$mailing['openstats'] = "Opens: " .
CRM_Utils_Array::value($values['mailing_id'], $openCounts, 0) .
"<br />Clicks: " .
- CRM_Utils_Array::value($values['mailing_id'], $clickCounts, 0);
+ $clickCounts[$values['mailing_id']] ?? 0;
$actionLinks = [
CRM_Core_Action::VIEW => [
throw new CRM_Core_Exception("Failed to create job: Unknown mailing ID");
}
$op = empty($params['id']) ? 'create' : 'edit';
- CRM_Utils_Hook::pre($op, 'MailingJob', CRM_Utils_Array::value('id', $params), $params);
+ CRM_Utils_Hook::pre($op, 'MailingJob', $params['id'] ?? NULL, $params);
$jobDAO = new CRM_Mailing_BAO_MailingJob();
$jobDAO->copyValues($params);