aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-02-03 23:02:09 +0000
committerChad Little <clittle@users.sourceforge.net>2004-02-03 23:02:09 +0000
commit02bed7d91ae13c34eb9b883b0df3b538e3bc4c76 (patch)
treea807738b4e9020115801dfe57c002a61a1c7024d /functions/ical_parser.php
parentb8fc4e4cb1d3a574a8a624fa5a357c005fe73ac4 (diff)
downloadphpicalendar-02bed7d91ae13c34eb9b883b0df3b538e3bc4c76.tar.gz
phpicalendar-02bed7d91ae13c34eb9b883b0df3b538e3bc4c76.tar.bz2
phpicalendar-02bed7d91ae13c34eb9b883b0df3b538e3bc4c76.zip
Removed unneeded files, tweeked templates, added legend for multiple
calendars.
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 9dbc8e0..80272dc 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -6,7 +6,6 @@ include_once(BASE.'functions/date_functions.php');
include_once(BASE.'functions/draw_functions.php');
include_once(BASE.'functions/overlapping_events.php');
include_once(BASE.'functions/timezones.php');
-include_once(BASE.'functions/list_functions.php');
$php_started = getmicrotime();
@@ -77,7 +76,7 @@ foreach ($cal_filelist as $filename) {
// Set default calendar name - can be overridden by X-WR-CALNAME
$calendar_name = $cal_filename;
- $master_array['calendar_name'] = $calendar_name;
+ $master_array['calendar_name'] = $calendar_name;
// read file in line by line
// XXX end line is skipped because of the 1-line readahead
@@ -119,6 +118,8 @@ foreach ($cal_filelist as $filename) {
} elseif ($line == 'END:VEVENT') {
+ if (!isset($master_array[-3][$calnumber])) $master_array[-3][$calnumber] = $actual_calname;
+
// Handle DURATION
if (!isset($end_unixtime) && isset($the_duration)) {
$end_unixtime = $start_unixtime + $the_duration;

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