Fixed incorrect quote order.
authorMattias Michaux <mattias.michaux@gmail.com>
Tue, 3 Nov 2015 12:49:06 +0000 (13:49 +0100)
committerMattias Michaux <mattias.michaux@gmail.com>
Thu, 5 Nov 2015 21:31:07 +0000 (22:31 +0100)
CRM/Event/BAO/Event.php
CRM/Event/BAO/Participant.php

index eb8f1933d9402694ca005ab6680cc766ea4cf82d..ee8c0e0eb9fefc81acedda7269c6b3f33c5a16bf 100644 (file)
@@ -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;
index 7e6cb9be1566c01463855944d59c023012944d13..f8f6110d1bf932269f1f8dab773b70a65d9bf1a5 100644 (file)
@@ -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'));