diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-09-15 03:04:47 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-09-15 03:04:47 +0000 |
commit | fd5837eca1f02fb64c939e3c66c64c7959b219bb (patch) | |
tree | ede01c9a773d8d0d56d40c9aa8ee95107498354b /functions/ical_parser.php | |
parent | a671111c915128eb57f79c99277e904d82c65dc2 (diff) | |
download | phpicalendar-fd5837eca1f02fb64c939e3c66c64c7959b219bb.tar.gz phpicalendar-fd5837eca1f02fb64c939e3c66c64c7959b219bb.tar.bz2 phpicalendar-fd5837eca1f02fb64c939e3c66c64c7959b219bb.zip |
a
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r-- | functions/ical_parser.php | 40 |
1 files changed, 20 insertions, 20 deletions
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); + } } |