From: <cl...@us...> - 2003-09-15 03:04:52
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv31855/functions Modified Files: ical_parser.php Log Message: a Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.95 retrieving revision 1.96 diff -C2 -d -r1.95 -r1.96 *** ical_parser.php 15 Sep 2003 02:54:03 -0000 1.95 --- ical_parser.php 15 Sep 2003 03:04:48 -0000 1.96 *************** *** 928,953 **** if ($parse_file) { ! // Sort the array by absolute date. ! if (isset($master_array) && is_array($master_array)) { ! ksort($master_array); ! reset($master_array); ! ! // sort the sub (day) arrays so the times are in order ! foreach (array_keys($master_array) as $k) { ! if (isset($master_array[$k]) && is_array($master_array[$k])) { ! ksort($master_array[$k]); ! reset($master_array[$k]); ! } ! } ! } ! // write the new master array to the file ! if (isset($master_array) && is_array($master_array) && $save_parsed_cals == 'yes' && $is_webcal == FALSE) { ! $write_me = serialize($master_array); ! $fd = fopen($parsedcal, 'w'); ! fwrite($fd, $write_me); ! fclose($fd); ! touch($parsedcal, $realcal_mtime); } } --- 928,953 ---- if ($parse_file) { ! // Sort the array by absolute date. ! if (isset($master_array) && is_array($master_array)) { ! ksort($master_array); ! reset($master_array); ! // sort the sub (day) arrays so the times are in order ! foreach (array_keys($master_array) as $k) { ! if (isset($master_array[$k]) && is_array($master_array[$k])) { ! ksort($master_array[$k]); ! reset($master_array[$k]); ! } } + } + + // write the new master array to the file + if (isset($master_array) && is_array($master_array) && $save_parsed_cals == 'yes' && $is_webcal == FALSE && $cal != 'all_calenders_combined971') { + $write_me = serialize($master_array); + $fd = fopen($parsedcal, 'w'); + fwrite($fd, $write_me); + fclose($fd); + touch($parsedcal, $realcal_mtime); + } } |