From 13e49da76fb0cfca342765397a8a8ae7f20051b3 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Fri, 26 Dec 2008 22:33:33 +0000 Subject: revert event length display adjustment - messes up overlap calculations --- functions/parse/end_vevent.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'functions/parse') 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)) { -- cgit v1.2.3