diff options
author | jwangen <jwangen> | 2002-10-01 07:10:08 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-10-01 07:10:08 +0000 |
commit | 28794302cedc175099911a4a667191352cbaa93f (patch) | |
tree | 4ae8b8f0f60489f2459ac31673d232435ab58700 /ical_parser.php | |
parent | 0fefb33852f88188732083eccaf5999eead9e6d3 (diff) | |
download | phpicalendar-28794302cedc175099911a4a667191352cbaa93f.tar.gz phpicalendar-28794302cedc175099911a4a667191352cbaa93f.tar.bz2 phpicalendar-28794302cedc175099911a4a667191352cbaa93f.zip |
implemented bug fix
Diffstat (limited to 'ical_parser.php')
-rw-r--r-- | ical_parser.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/ical_parser.php b/ical_parser.php index d401eab..aa71e10 100644 --- a/ical_parser.php +++ b/ical_parser.php @@ -612,21 +612,23 @@ foreach($contents as $line) { } } } + // Sort the array by absolute date. if (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 (is_array($master_array[$k])) { - ksort($master_array[$k]); - reset($master_array[$k]); + + // sort the sub (day) arrays so the times are in order + foreach (array_keys($master_array) as $k) { + if (is_array($master_array[$k])) { + ksort($master_array[$k]); + reset($master_array[$k]); + } } } + // Store information in the session /*if ($use_sessions == "yes") { session_start(); |