diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2009-05-27 16:47:40 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2009-05-27 16:47:40 +0000 |
commit | 240478eaa4215572691e01fc79ce2dedf9767337 (patch) | |
tree | 1466a55a7d780fffbd9a20085c5086d1bc443890 /functions/template.php | |
parent | 90d440d610040e60e11390e5b6bc272a0f0dd4b2 (diff) | |
download | phpicalendar-240478eaa4215572691e01fc79ce2dedf9767337.tar.gz phpicalendar-240478eaa4215572691e01fc79ce2dedf9767337.tar.bz2 phpicalendar-240478eaa4215572691e01fc79ce2dedf9767337.zip |
Fixes for print view
Diffstat (limited to 'functions/template.php')
-rw-r--r-- | functions/template.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/template.php b/functions/template.php index 3b3bf78..0a0c212 100644 --- a/functions/template.php +++ b/functions/template.php @@ -77,7 +77,7 @@ class Page { $day_events = 0; // Pull out each day $some_events = ''; - foreach ($val as $new_val) { + foreach ($val as $cal_time => $new_val) { foreach ($new_val as $new_key2 => $new_val2) { if (isset($seen_events["$new_key2"]) && isset($new_val2['spans_day']) && $new_val2['spans_day'] == 1){ $new_val2['event_text'] .= " second instance of ".$new_key2; @@ -97,7 +97,7 @@ class Page { $event_start = $new_val2['event_start']; $event_end = $new_val2['event_end']; if (isset($new_val2['display_end'])) $event_end = $new_val2['display_end']; - if (!isset($new_val2['event_start'])) { + if ($cal_time == -1) { $event_start = $lang['l_all_day']; $event_start2 = ''; $event_end = ''; |