X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCampaign%2FBAO%2FQuery.php;h=e70340cffbb4221c47c71af19a7f0e468a511a45;hb=1124d2f4354857252e248e777541206d9352e497;hp=8e3191cbcc5fbfca38d7138d0347b0d7e593b5c5;hpb=34549323dc186f2fb67e4933a26c1de946a99700;p=civicrm-core.git diff --git a/CRM/Campaign/BAO/Query.php b/CRM/Campaign/BAO/Query.php index 8e3191cbcc..e70340cffb 100644 --- a/CRM/Campaign/BAO/Query.php +++ b/CRM/Campaign/BAO/Query.php @@ -440,8 +440,8 @@ INNER JOIN civicrm_custom_group grp on fld.custom_group_id = grp.id if (!is_array($params) || empty($params)) { return $voterClause; } - $surveyId = CRM_Utils_Array::value('campaign_survey_id', $params); - $searchVoterFor = CRM_Utils_Array::value('campaign_search_voter_for', $params); + $surveyId = $params['campaign_survey_id'] ?? NULL; + $searchVoterFor = $params['campaign_search_voter_for'] ?? NULL; //get the survey activities. $activityStatus = CRM_Core_PseudoConstant::activityStatus('name'); @@ -478,7 +478,7 @@ INNER JOIN civicrm_custom_group grp on fld.custom_group_id = grp.id ) { $voterIds = []; foreach ($voterActValues as $values) { - $numOfDays = CRM_Utils_Array::value($values['result'], $recontactInterval); + $numOfDays = $recontactInterval[$values['result']] ?? NULL; if ($numOfDays && $values['status_id'] == $completedStatusId ) {