From fd5837eca1f02fb64c939e3c66c64c7959b219bb Mon Sep 17 00:00:00 2001 From: Chad Little Date: Mon, 15 Sep 2003 03:04:47 +0000 Subject: a --- functions/ical_parser.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'functions/ical_parser.php') diff --git a/functions/ical_parser.php b/functions/ical_parser.php index c136ca4..319bf20 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -927,28 +927,28 @@ foreach ($cal_filelist as $filename) { 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]); - } - } - } + // Sort the array by absolute date. + if (isset($master_array) && is_array($master_array)) { + ksort($master_array); + reset($master_array); - // 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); + // 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); + } } -- cgit v1.2.3