When a VEVENT has an invalid repeat frequency we pretend it is DAILY.

And log an error, just to be obnoxious.
This commit is contained in:
Andrew McMillan 2012-06-14 13:37:13 +12:00
parent 2538835a12
commit 1cfc01758d

View File

@ -756,6 +756,9 @@ class RepeatRule {
return array( 'bymonth' => 'limit', 'bymonthday' => 'limit',
'byday' => 'limit', 'byhour' => 'limit', 'byminute' => 'limit', 'bysecond' => 'limit' );
}
dbg_error_log('ERROR','Invalid frequency code "%s" - pretending it is "DAILY"', $freq);
return array( 'bymonth' => 'limit', 'bymonthday' => 'limit',
'byday' => 'limit', 'byhour' => 'expand', 'byminute' => 'expand', 'bysecond' => 'expand' );
}
private function GetMoreInstances($return_floating_times=false) {