use implodepadded
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 24 Nov 2015 05:32:03 +0000 (11:02 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 24 Nov 2015 05:32:03 +0000 (11:02 +0530)
CRM/Price/BAO/PriceSet.php

index f4510bcb211a77976c8f8a17adc91e9fc5d83d62..cb8be72f3dd868e3ac77d328363a4511b897e181 100644 (file)
@@ -917,7 +917,7 @@ WHERE  id = %1";
     }
     // @todo - stop setting amount level in this function & call the getAmountLevel function to retrieve it.
     if (!empty($amount_level)) {
-      $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level) . CRM_Core_DAO::VALUE_SEPARATOR;
+      $params['amount_level'] = CRM_Utils_Array::implodePadded($amount_level);
       if (!empty($displayParticipantCount)) {
         $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level) . $displayParticipantCount . CRM_Core_DAO::VALUE_SEPARATOR;
       }