diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:49:34 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-09-02 18:49:34 +0000 |
commit | 7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba (patch) | |
tree | d2d97332ae9a30400c22287559d73f0311bbce3d | |
parent | 4d43120be01f4681e38e56df91e6f0ef8500e2ed (diff) | |
download | phpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.tar.gz phpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.tar.bz2 phpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.zip |
Updated README and fixed PHP5 error on print.
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | functions/template.php | 9 |
2 files changed, 6 insertions, 4 deletions
@@ -92,6 +92,7 @@ Changes: -Added iCal specific publish.php. -Fixed stat bug. -PHP5 support added. + -Requires PHP 4.1.0 or greater now. -Various Bug fixes. 2.0 alpha 2 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 == '') { |