From b254d095fd02666b87d124e78063665b4ae55330 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 28 May 2004 16:33:44 +0000 Subject: FIxed a bug not allowing all combined to cache. --- config.inc.php | 1 - functions/ical_parser.php | 6 +++--- functions/list_functions.php | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config.inc.php b/config.inc.php index 44919e2..f563595 100644 --- a/config.inc.php +++ b/config.inc.php @@ -5,7 +5,6 @@ // To set values, change the text between the single quotes // Follow instructions to the right for detailed information -$style_sheet = 'silver'; // Themes support - silver, red, green, orange, grey, tan $template = 'default'; // Template support $default_view = 'day'; // Default view for calendars = 'day', 'week', 'month', 'year' $minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current' diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 5a9f3f1..3a85726 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -155,9 +155,9 @@ foreach ($cal_filelist as $filename) { case 'END:VEVENT': - if (!isset($master_array[-3][$calnumber])) $master_array[-3][$calnumber] = $actual_calname; - if (!isset($master_array[-4][$calnumber]['mtime'])) $master_array[-4][$calnumber]['mtime'] = $actual_mtime; - if (!isset($master_array[-4][$calnumber]['filename'])) $master_array[-4][$calnumber]['filename'] = $filename; + if (!isset($master_array['-3'][$calnumber])) $master_array['-3'][$calnumber] = $actual_calname; + if (!isset($master_array['-4'][$calnumber]['mtime'])) $master_array['-4'][$calnumber]['mtime'] = $actual_mtime; + if (!isset($master_array['-4'][$calnumber]['filename'])) $master_array['-4'][$calnumber]['filename'] = $filename; if (!isset($url)) $url = ''; if (!isset($type)) $type = ''; diff --git a/functions/list_functions.php b/functions/list_functions.php index 72b8008..cfc1745 100644 --- a/functions/list_functions.php +++ b/functions/list_functions.php @@ -12,7 +12,7 @@ function list_jumps() { function list_calcolors() { global $template, $master_array; - foreach ($master_array[-3] as $key => $val) { + foreach ($master_array['-3'] as $key => $val) { $return .= ' '.$val.'
'; } return $return; -- cgit v1.2.3