From f1f99f34eb1d692456717deb28dc8a1e338cfc73 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 2 Sep 2004 18:57:42 +0000 Subject: Fixes. --- functions/ical_parser.php | 2 +- functions/init.inc.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'functions') diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 917b43c..38b619b 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -253,7 +253,7 @@ foreach ($cal_filelist as $filename) { $allday_end = ($start_date + 1); } } - if (isset($start_unixtime,$end_unixtime) && date('d',$start_unixtime) != date('d',$end_unixtime)) { + if (isset($start_unixtime,$end_unixtime) && date('Ymd',$start_unixtime) != date('Ymd',$end_unixtime)) { $spans_day = true; $bleed_check = (($start_unixtime - $end_unixtime) < (60*60*24)) ? '-1' : '0'; } else { diff --git a/functions/init.inc.php b/functions/init.inc.php index 8097ce6..e22db72 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -70,10 +70,9 @@ if (ini_get('max_execution_time') < 60) { } if ($calendar_path == '') { - $calendar_path = 'calendars'; - $calendar_path_orig = $calendar_path; - $calendar_path = BASE.$calendar_path; + $calendar_path = 'calendars'; } +$calendar_path = BASE.$calendar_path; $is_webcal = FALSE; if (isset($_GET['cal']) && $_GET['cal'] != '') { -- cgit v1.2.3