CRM-15932 - Fix undefined vars
authorColeman Watts <coleman@civicrm.org>
Sun, 1 Mar 2015 16:59:38 +0000 (11:59 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 2 Mar 2015 15:55:21 +0000 (10:55 -0500)
CRM/Core/BAO/RecurringEntity.php

index ae2ef35b836cad687deedc294217c9ae12f47766..cf5ee41829578677594897f87c17fe1449cc435f 100644 (file)
@@ -361,8 +361,8 @@ class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
           $recursionDates[$count][$col] = CRM_Utils_Date::processDate($newDate->format('Y-m-d H:i:s'));
         }
         if ($exRangeStart) {
-          $exRangeStartDate = CRM_Utils_Date::processDate($recursionDates[$count][$exRangeStart], NULL, FALSE, 'Ymd');
-          $exRangeEndDate = CRM_Utils_Date::processDate($recursionDates[$count][$exRangeEnd], NULL, FALSE, 'Ymd');
+          $exRangeStartDate = CRM_Utils_Date::processDate(CRM_Utils_Array::value($exRangeStart, $recursionDates[$count]), NULL, FALSE, 'Ymd');
+          $exRangeEndDate = CRM_Utils_Date::processDate(CRM_Utils_Array::value($exRangeEnd, $recursionDates[$count]), NULL, FALSE, 'Ymd');
         }
 
         foreach ($this->excludeDates as $exDate) {