From 1cfc01758d7d06af712cc8c6c347418cd4c20ea4 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 14 Jun 2012 13:37:13 +1200 Subject: [PATCH] When a VEVENT has an invalid repeat frequency we pretend it is DAILY. And log an error, just to be obnoxious. --- inc/RRule-v2.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/RRule-v2.php b/inc/RRule-v2.php index 4a2058b7..6e8647cd 100644 --- a/inc/RRule-v2.php +++ b/inc/RRule-v2.php @@ -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) {