From a17caa0dd1572c6266222cfd058de74f548e6f97 Mon Sep 17 00:00:00 2001 From: davef Date: Thu, 15 Sep 2005 22:51:27 +0000 Subject: Fixed bug where if the times weren't on the half-hour mark, it wouldn't pop-up correctly - now it passes the time used in the array as part of the openevent call. --- functions/date_functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functions/date_functions.php') diff --git a/functions/date_functions.php b/functions/date_functions.php index 2b83c79..a541a99 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -162,7 +162,7 @@ function chooseOffset($time) { return $offset; } -function openevent($event_date, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') { +function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') { global $cpath; $event_text = stripslashes(urldecode($arr["event_text"])); if (empty($start)) { @@ -186,8 +186,7 @@ function openevent($event_date, $uid, $arr, $lines = 0, $length = 0, $link_class if ((!(ereg("([[:alpha:]]+://[^<>[:space:]]+)", $full_event_text, $res))) || ($arr['description'])) { $escaped_date = addslashes($event_date); - $escaped_time = addslashes($arr['event_start']); - if (!$escaped_time) $escaped_time = -1; + $escaped_time = addslashes($time); $escaped_uid = addslashes($uid); // fix for URL-length bug in IE: populate and submit a hidden form on click static $popup_data_index = 0; -- cgit v1.2.3