aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.php
diff options
context:
space:
mode:
authordavef <davefd2@users.sourceforge.net>2005-09-15 22:51:27 +0000
committerdavef <davefd2@users.sourceforge.net>2005-09-15 22:51:27 +0000
commita17caa0dd1572c6266222cfd058de74f548e6f97 (patch)
tree1a3e0d69fc9863308bfff2d9de285410d7a5b82b /functions/date_functions.php
parent4edff402a5ce3b87b8ad2f6590f2636b44376488 (diff)
downloadphpicalendar-a17caa0dd1572c6266222cfd058de74f548e6f97.tar.gz
phpicalendar-a17caa0dd1572c6266222cfd058de74f548e6f97.tar.bz2
phpicalendar-a17caa0dd1572c6266222cfd058de74f548e6f97.zip
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.
Diffstat (limited to 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php5
1 files changed, 2 insertions, 3 deletions
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;

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