} // each recurrence
- // Check all reg_times we had from before to make sure they were matched with a recur time
- $deleteList = '';
- $deleteSep = '';
- foreach($this->regEventData['reg_time'] as $regTimeKey=>$regTimeVal) {
- if (!isset($regTimeVal['OK'])) {
+ // If this is a time specific event
+ if ($this->regEventData['time_specific']['value']) {
+
+ // Check all reg_times we had from before to make sure they were matched with a recur time
+ $deleteList = '';
+ $deleteSep = '';
+ foreach($this->regEventData['reg_time'] as $regTimeKey=>$regTimeVal) {
+ if (!isset($regTimeVal['OK'])) {
- // If this time didn't match a recur time, then it must have been removed in the event so add to list
- $deleteList .= $deleteSep.$regTimeKey;
- $deleteSep = ',';
+ // If this time didn't match a recur time, then it must have been removed in the event so add to list
+ $deleteList .= $deleteSep.$regTimeKey;
+ $deleteSep = ',';
+ }
}
+
}
// If there's anything in the delete list, purge them now and say we need a reload