diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-05-28 16:33:44 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-05-28 16:33:44 +0000 |
commit | b254d095fd02666b87d124e78063665b4ae55330 (patch) | |
tree | cfd58e4da87e74fd5986d5ab754a2157164861c4 /functions | |
parent | ef687e7ade702bf9b684c9651cfa1463f9c0adaa (diff) | |
download | phpicalendar-b254d095fd02666b87d124e78063665b4ae55330.tar.gz phpicalendar-b254d095fd02666b87d124e78063665b4ae55330.tar.bz2 phpicalendar-b254d095fd02666b87d124e78063665b4ae55330.zip |
FIxed a bug not allowing all combined to cache.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 6 | ||||
-rw-r--r-- | functions/list_functions.php | 2 |
2 files changed, 4 insertions, 4 deletions
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 .= '<img src="templates/'.$template.'/images/monthdot_'.$key.'.gif" alt="" /> '.$val.'<br />'; } return $return; |