diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-11-14 22:15:44 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-11-14 22:15:44 +0000 |
commit | 0f5ee7a026b07b9529e309ff6761a994d6a89fdf (patch) | |
tree | 3121393bb7abeeeb0b3b2acb890b75a3b8b1f799 /functions | |
parent | 1f4e164bfddad183936a276a5a690bf6629f6322 (diff) | |
download | phpicalendar-0f5ee7a026b07b9529e309ff6761a994d6a89fdf.tar.gz phpicalendar-0f5ee7a026b07b9529e309ff6761a994d6a89fdf.tar.bz2 phpicalendar-0f5ee7a026b07b9529e309ff6761a994d6a89fdf.zip |
Declared bymonth and bymonthday
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 036b408..60fd416 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -102,6 +102,8 @@ foreach ($cal_filelist as $filename) { $except_dates = array(); $except_times = array(); + $bymonth = array(); + $bymonthday = array(); $first_duration = TRUE; $count = 1000000; $valarm_set = FALSE; @@ -439,7 +441,7 @@ foreach ($cal_filelist as $filename) { if (!isset($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)); // month has two cases, either $bymonthday or $byday - if ((is_array($bymonthday)) && (!is_array($byday))) { + if ((isset($bymonthday)) && (!isset($byday))) { // loop through the days on which this event happens foreach($bymonthday as $day) { $year = date('Y', $next_range_time); |