From e97b19bd524e262a3d2dd83990928fcfc394fc5c Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Tue, 3 Nov 2015 13:49:06 +0100 Subject: [PATCH] Fixed incorrect quote order. --- CRM/Event/BAO/Event.php | 2 +- CRM/Event/BAO/Participant.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/BAO/Event.php b/CRM/Event/BAO/Event.php index eb8f1933d9..ee8c0e0eb9 100644 --- a/CRM/Event/BAO/Event.php +++ b/CRM/Event/BAO/Event.php @@ -633,7 +633,7 @@ $event_summary_limit $roleClause = 'IN'; } if (array_keys($roleTypes)) { - $roles = '"' . implode("','", array_keys($roleTypes)) . '"'; + $roles = '"' . implode('","', array_keys($roleTypes)) . '"'; } else { $roles = 0; diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index 7e6cb9be15..f8f6110d1b 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -383,7 +383,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant { $where[] = ' ( participant.is_test = 0 OR participant.is_test IS NULL ) '; } if (!empty($participantRoles)) { - $where[] = ' participant.role_id IN ( "' . implode("', '", array_keys($participantRoles)) . '" ) '; + $where[] = ' participant.role_id IN ( "' . implode('", "', array_keys($participantRoles)) . '" ) '; } $eventParams = array(1 => array($eventId, 'Positive')); -- 2.25.1