} else {
$this->regEventData['reg_class'][$ck]['times'] = array();
+ $this->regEventData['reg_class'][$ck]['hasTimes'] = false;
// For each event time
foreach ($this->regEventData['reg_time'] as $tk=>$tv) {
// If it's time to register with this time/rate - Add it to the class data
if (time() > $earliestTime && time() < $latestTime) {
$this->regEventData['reg_class'][$ck]['times'][$tv['event_time']] = array_merge($tv, $rv);
+ $this->regEventData['reg_class'][$ck]['hasTimes'] = true;
}
}
// If it's time to register with this time/rate - Add it to the class data
if (time() > $earliestTime && time() < $latestTime) {
$this->regEventData['reg_class'][$ck]['times'][$tv['event_time']] = array_merge($tv, $rv);
+ $this->regEventData['reg_class'][$ck]['hasTimes'] = true;
}
}
// Get rid of all of the recurrence data - No longer needed
unset($this->regEventData['recurrences']);
- // Get rid of the provided reg_time entries
+ // Get rid of the provided reg_time entries - No longer needed
unset($this->regEventData['reg_time']);
// echo "<pre>".print_r($this->regEventData,1)."<pre>";