aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2007-05-23 18:17:50 +0000
committerJim Hu <jimhu@users.sourceforge.net>2007-05-23 18:17:50 +0000
commitfcedd5a0e354b5d261fafe0e34d4bf78614b25d3 (patch)
treea7535fc7d277fd7194b13520d466ca65232d29c3 /functions
parenteb4a4035a041b15627453529dfe2e7c0728f66ce (diff)
downloadphpicalendar-fcedd5a0e354b5d261fafe0e34d4bf78614b25d3.tar.gz
phpicalendar-fcedd5a0e354b5d261fafe0e34d4bf78614b25d3.tar.bz2
phpicalendar-fcedd5a0e354b5d261fafe0e34d4bf78614b25d3.zip
fix repeat display problem for monthbottom and printview
Diffstat (limited to 'functions')
-rw-r--r--functions/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/template.php b/functions/template.php
index 1353f75..9efd8ce 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -76,7 +76,7 @@ class Page {
// Pull out each day
foreach ($val as $new_val) {
foreach ($new_val as $new_key2 => $new_val2) {
- if (isset($seen_events["$new_key2"])){
+ if (isset($seen_events["$new_key2"]) && $new_val2['spans_day'] == 1){
$new_val2['event_text'] .= " second instance of ".$new_key2;
continue;
}
@@ -1013,7 +1013,7 @@ class Page {
# $switch['START_DATE'] = localizeDate ($dateFormat_week_list, $u_start);
$start_date = localizeDate ($dateFormat_week_list, $u_start);
foreach ($event_times as $uid => $val) {
- if (isset($seen_events[$uid])) continue;
+ if (isset($seen_events[$uid]) && $val['spans_day'] == 1) continue;
$seen_events[$uid] = 1;
$switch['CAL'] = $cal;
$switch['START_DATE'] = $start_date;

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