From: Coleman Watts Date: Fri, 3 Apr 2015 13:24:48 +0000 (-0400) Subject: CRM-16209 - Add strict type checking to in_array X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=653cbe4630d6c16c5d0c4b3e8813b6b853cb6839;p=civicrm-core.git CRM-16209 - Add strict type checking to in_array --- 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]; }