From 333f00a0225a94e94f4388937e1741e102c5b110 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Sat, 27 Dec 2008 10:58:50 +0000 Subject: rewrite and condense master array writing in end_vevent.php. Condense draw_week in template.php. bump vers --- functions/date_functions.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'functions/date_functions.php') 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'; } -- cgit v1.2.3