CRM-13922 - Campaign - avoid undefined index error when releasing respondents
authorJamie McClelland <jm@mayfirst.org>
Fri, 6 Dec 2013 21:24:48 +0000 (16:24 -0500)
committerJamie McClelland <jm@mayfirst.org>
Fri, 6 Dec 2013 21:24:48 +0000 (16:24 -0500)
----------------------------------------
* 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

index 05f84988be0d4e6e6a2f19a835787bb6a3a5bf4b..4fca214d9d4f409ff51ce4525ddd2a151eb1914a 100644 (file)
@@ -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) {