From 47dd4836de479915614818bac28d86130f4d5c5a Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 6 Dec 2013 16:24:48 -0500 Subject: [PATCH] CRM-13922 - Campaign - avoid undefined index error when releasing respondents ---------------------------------------- * CRM-13922: release respondent search doesn't allow you to find contacts reserved to a different interviewer http://issues.civicrm.org/jira/browse/CRM-13922 --- CRM/Campaign/BAO/Survey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Campaign/BAO/Survey.php b/CRM/Campaign/BAO/Survey.php index 05f84988be..4fca214d9d 100644 --- a/CRM/Campaign/BAO/Survey.php +++ b/CRM/Campaign/BAO/Survey.php @@ -864,7 +864,7 @@ INNER JOIN civicrm_contact contact_a ON ( activityTarget.contact_id = contact_a } } - return $ufIds[$surveyId]; + return CRM_Utils_Array::value($surveyId, $ufIds); } public Static function getReportID($surveyId) { -- 2.25.1