diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-09-03 18:54:13 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-09-03 18:54:13 +0000 |
commit | e76b72dd2012280c32711f03abf2a4fe6709837c (patch) | |
tree | 9bf6d992583698237a3bba86a627198fc8707434 /functions | |
parent | e6afb6b8e62e82041f9aa20609f017284188fa73 (diff) | |
download | phpicalendar-e76b72dd2012280c32711f03abf2a4fe6709837c.tar.gz phpicalendar-e76b72dd2012280c32711f03abf2a4fe6709837c.tar.bz2 phpicalendar-e76b72dd2012280c32711f03abf2a4fe6709837c.zip |
Fix for [ 1009061 ] some repeating dates don't display
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 38b619b..8ca1b6c 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -533,7 +533,7 @@ foreach ($cal_filelist as $filename) { } break; case 'MONTHLY': - if (!isset($bymonth)) $bymonth = array(1,2,3,4,5,6,7,8,9,10,11,12); + if (empty($bymonth)) $bymonth = array(1,2,3,4,5,6,7,8,9,10,11,12); $next_range_time = strtotime(date('Y-m-01', $next_range_time)); $next_date_time = $next_date_time; if ((isset($bymonthday)) && (!isset($byday))) { @@ -565,7 +565,7 @@ foreach ($cal_filelist as $filename) { if (in_array($month, $bymonth)) { $recur_data[] = $next_date_time; } - } elseif (isset($bymonthday)) { + } elseif (isset($bymonthday) && (!empty($bymonthday))) { // This supports MONTHLY where BYDAY and BYMONTH are both set foreach($bymonthday as $day) { $year = date('Y', $next_range_time); |