CRM-15311 condition on is_array rather than remove
authorBrian Shaughnessy <brian@lcdservices.biz>
Tue, 16 Sep 2014 01:19:25 +0000 (21:19 -0400)
committerBrian Shaughnessy <brian@lcdservices.biz>
Tue, 16 Sep 2014 01:19:25 +0000 (21:19 -0400)
CRM/Report/Form/Event/Income.php

index 4e2faff57cdd896d5fefd63b2f52b0652df78b02..43ecaa2a0767e24b291bae4a8d72632bbd48688d 100644 (file)
@@ -334,6 +334,9 @@ class CRM_Report_Form_Event_Income extends CRM_Report_Form_Event {
       }
       $noSelection = TRUE;
     }
+    elseif (!is_array($this->_params['id_value'])) {
+      $this->_params['id_value'] = explode(',', $this->_params['id_value']);
+    }
 
     $this->_rowsFound = count($this->_params['id_value']);