From: <cl...@us...> - 2004-09-03 18:54:22
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11060/functions Modified Files: ical_parser.php Log Message: Fix for [ 1009061 ] some repeating dates don't display Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.180 retrieving revision 1.181 diff -C2 -d -r1.180 -r1.181 *** ical_parser.php 2 Sep 2004 18:57:42 -0000 1.180 --- ical_parser.php 3 Sep 2004 18:54:13 -0000 1.181 *************** *** 534,538 **** break; case 'MONTHLY': ! 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)); $next_date_time = $next_date_time; --- 534,538 ---- break; case 'MONTHLY': ! 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; *************** *** 566,570 **** $recur_data[] = $next_date_time; } ! } elseif (isset($bymonthday)) { // This supports MONTHLY where BYDAY and BYMONTH are both set foreach($bymonthday as $day) { --- 566,570 ---- $recur_data[] = $next_date_time; } ! } elseif (isset($bymonthday) && (!empty($bymonthday))) { // This supports MONTHLY where BYDAY and BYMONTH are both set foreach($bymonthday as $day) { |