From 653cbe4630d6c16c5d0c4b3e8813b6b853cb6839 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 3 Apr 2015 09:24:48 -0400 Subject: [PATCH] CRM-16209 - Add strict type checking to in_array --- CRM/Event/BAO/Participant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index ea4e7e521d..a01cb5dbd9 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -106,7 +106,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant { // ensure that role ids are encoded as a string if (isset($params['role_id']) && is_array($params['role_id'])) { - if (in_array(key($params['role_id']), CRM_Core_DAO::acceptedSQLOperators())) { + if (in_array(key($params['role_id']), CRM_Core_DAO::acceptedSQLOperators(), TRUE)) { $op = key($params['role_id']); $params['role_id'] = $params['role_id'][$op]; } -- 2.25.1