aboutsummaryrefslogtreecommitdiffstats
path: root/functions/parse
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-26 22:33:33 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-26 22:33:33 +0000
commit13e49da76fb0cfca342765397a8a8ae7f20051b3 (patch)
tree7eb0eb91b005f69b7784d83ad880397c39c924de /functions/parse
parentb4d635e784aa5589a34d3bbadaf3e93482fa4d33 (diff)
downloadphpicalendar-13e49da76fb0cfca342765397a8a8ae7f20051b3.tar.gz
phpicalendar-13e49da76fb0cfca342765397a8a8ae7f20051b3.tar.bz2
phpicalendar-13e49da76fb0cfca342765397a8a8ae7f20051b3.zip
revert event length display adjustment - messes up overlap calculations
Diffstat (limited to 'functions/parse')
-rw-r--r--functions/parse/end_vevent.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/functions/parse/end_vevent.php b/functions/parse/end_vevent.php
index 3f14924..e35160c 100644
--- a/functions/parse/end_vevent.php
+++ b/functions/parse/end_vevent.php
@@ -36,9 +36,13 @@ if (!isset($uid)) {
$uid = $uid_counter;
$uid_counter++;
$uid_valid = false;
-} else {
+}elseif(in_array($uid, $uid_list)) {
+ $uid .= $uid_counter;
+ $uid_counter++;
+}else{
$uid_valid = true;
}
+$uid_list[] = $uid;
# adjust event start and end times
if (isset($start_time) && isset($end_time)) {

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