aboutsummaryrefslogtreecommitdiffstats
path: root/functions/ical_parser.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2009-01-26 05:07:38 +0000
committerJim Hu <jimhu@users.sourceforge.net>2009-01-26 05:07:38 +0000
commit5e9bdcce333efc2efc277ac15c627981236c9c53 (patch)
tree1cad825b2fb4ce9b381bb61cb5d54d6b79ea18f1 /functions/ical_parser.php
parent46a025425efdd8f196d17465308f108d8f01992f (diff)
downloadphpicalendar-5e9bdcce333efc2efc277ac15c627981236c9c53.tar.gz
phpicalendar-5e9bdcce333efc2efc277ac15c627981236c9c53.tar.bz2
phpicalendar-5e9bdcce333efc2efc277ac15c627981236c9c53.zip
for bug 2525176 require sequence to increment for modified events. Also fix uid handling
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r--functions/ical_parser.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index ad4ed81..ae6c335 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -26,7 +26,7 @@ if ($phpiCal_config->save_parsed_cals == 'yes') {
$fname = $master_array['-4'][$z]['filename'];
$wcalc = $master_array['-4'][$z]['webcal'];
if ($wcalc == 'no') $realcal_mtime = filemtime($fname);
- if (($mtime == $realcal_mtime) && ($wcalc == 'no')) {
+ if (isset($realcal_mtime) && ($mtime == $realcal_mtime) && ($wcalc == 'no')) {
$y++;
} elseif (($wcalc == 'yes') && ($mtime > $webcal_mtime)) {
//echo date('H:i',$mtime). ' > '. date('H:i',$webcal_mtime);
@@ -142,6 +142,7 @@ foreach ($cal_filelist as $cal_key=>$filename) {
);
$interval = 1;
+ $sequence = 0;
$summary = '';
$description = '';
$status = '';
@@ -388,6 +389,9 @@ foreach ($cal_filelist as $cal_key=>$filename) {
unset($server_offset_tmp);
break;
+ case 'SEQUENCE':
+ $sequence = $data;
+ break;
case 'UID':
$uid = $data;
break;

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