aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-09-15 03:04:47 +0000
committerChad Little <clittle@users.sourceforge.net>2003-09-15 03:04:47 +0000
commitfd5837eca1f02fb64c939e3c66c64c7959b219bb (patch)
treeede01c9a773d8d0d56d40c9aa8ee95107498354b /functions/ical_parser.php
parenta671111c915128eb57f79c99277e904d82c65dc2 (diff)
downloadphpicalendar-fd5837eca1f02fb64c939e3c66c64c7959b219bb.tar.gz
phpicalendar-fd5837eca1f02fb64c939e3c66c64c7959b219bb.tar.bz2
phpicalendar-fd5837eca1f02fb64c939e3c66c64c7959b219bb.zip
a
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php40
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);
+ }
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy