projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a925a5d
)
CRM-16209 - Add strict type checking to in_array
author
Coleman Watts
<coleman@civicrm.org>
Fri, 3 Apr 2015 13:24:48 +0000
(09:24 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Fri, 3 Apr 2015 13:24:48 +0000
(09:24 -0400)
CRM/Event/BAO/Participant.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Event/BAO/Participant.php
b/CRM/Event/BAO/Participant.php
index ea4e7e521d89a705a2b322f1a2e0c1bdf1a41d16..a01cb5dbd9c2c783805ff85021f7863473fc1a48 100644
(file)
--- 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];
}