aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-27 10:58:50 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-27 10:58:50 +0000
commit333f00a0225a94e94f4388937e1741e102c5b110 (patch)
tree060911b53d2d4feffee5c69927a1fdeeae0915ed /functions/date_functions.php
parentf53afe845eff0f8712afbdcb908995df267a005f (diff)
downloadphpicalendar-333f00a0225a94e94f4388937e1741e102c5b110.tar.gz
phpicalendar-333f00a0225a94e94f4388937e1741e102c5b110.tar.bz2
phpicalendar-333f00a0225a94e94f4388937e1741e102c5b110.zip
rewrite and condense master array writing in end_vevent.php. Condense draw_week in template.php. bump vers
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index 07950ec..c03c5ae 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -166,6 +166,7 @@ function chooseOffset($time, $timezone = '') {
function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') {
global $cpath, $master_array;
+ $return = '';
$event_text = stripslashes(urldecode($arr["event_text"]));
if (empty($start)) {
$title = $event_text;
@@ -248,6 +249,7 @@ function extractDateTime($data, $property, $field) {
// Extract date-time values.
// Pull out the date and time values. Minimum year is 1970.
preg_match ('/([0-9]{4})([0-9]{2})([0-9]{2})T{0,1}([0-9]{0,2})([0-9]{0,2})/', $data, $regs);
+ if (!isset ($regs[1])) return;
if ($regs[1] < 1970) {
$regs[1] = '1971';
}

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