aboutsummaryrefslogtreecommitdiffstats
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
parent4d43120be01f4681e38e56df91e6f0ef8500e2ed (diff)
downloadphpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.tar.gz
phpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.tar.bz2
phpicalendar-7a1af61f7f34c555d7c1be0b6a8eb9f06fd505ba.zip
Updated README and fixed PHP5 error on print.
-rw-r--r--README1
-rw-r--r--functions/template.php9
2 files changed, 6 insertions, 4 deletions
diff --git a/README b/README
index 6289500..98cd73e 100644
--- a/README
+++ b/README
@@ -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 == '') {

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