From: <cl...@us...> - 2003-09-20 19:43:20
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv3545/functions Modified Files: ical_parser.php Log Message: Fix for interval = 1 Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** ical_parser.php 20 Sep 2003 19:13:12 -0000 1.107 --- ical_parser.php 20 Sep 2003 19:43:16 -0000 1.108 *************** *** 410,413 **** --- 410,416 ---- $next_range_time = $start_range_time_tmp; + // FIXME: This is a hack to fix repetitions with $interval > 1 + if ($count > 1 && $number > 1) $count = 1 + ($count - 1) * $number; + $count_to = 0; // start at the $start_range and go until we hit the end of our range. |