aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-09-02 18:49:34 +0000
committerChad Little <clittle@users.sourceforge.net>2004-09-02 18:49:34 +0000
commit7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba (patch)
treed2d97332ae9a30400c22287559d73f0311bbce3d /functions
parent4d43120be01f4681e38e56df91e6f0ef8500e2ed (diff)
downloadphpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.tar.gz
phpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.tar.bz2
phpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.zip
Updated README and fixed PHP5 error on print.
Diffstat (limited to 'functions')
-rw-r--r--functions/template.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/functions/template.php b/functions/template.php
index 2948218..08041c1 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -80,14 +80,15 @@ 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'];
- $event_start = date ($timeFormat, strtotime ($event_start));
- $event_end = date ($timeFormat, strtotime ($event_end));
- $event_start = $event_start .' - '.$event_end;
if (!$new_val2['event_start']) {
$event_start = $lang['l_all_day'];
$event_start2 = '';
$event_end = '';
- }
+ } else {
+ $event_start = date ($timeFormat, strtotime ($event_start));
+ $event_end = date ($timeFormat, strtotime ($event_end));
+ $event_start = $event_start .' - '.$event_end;
+ }
}
if ($description == '') {

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