From ce4d8be46ccefe642883253544a4ec81bdde8cc5 Mon Sep 17 00:00:00 2001 From: jwangen Date: Fri, 4 Oct 2002 09:32:29 +0000 Subject: Fixed almost all the warning we were getting before. Basically just added isset() to all the conditions that were reporting errors. One line in ical_parser needs to be double checked, it's commented, towards the bottom. --- day.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'day.php') diff --git a/day.php b/day.php index 75cfb3a..b76b999 100644 --- a/day.php +++ b/day.php @@ -118,6 +118,9 @@ if ($master_array[($getdate)]) { foreach($master_array[($getdate)]['-1'] as $allday) { $all_day_text = $allday['event_text']; $description = $allday['description']; + $event_text2 = urlencode(addslashes($all_day_text)); + $event_start = 'All'; + $event_end = 'Day'; echo ''."\n"; echo ''.$all_day_text.''."\n"; @@ -149,7 +152,7 @@ if ($master_array[($getdate)]) { $key = date ($timeFormat, $key); // check for eventstart - if (sizeof($master_array[($getdate)][$cal_time]) > 0) { + if (isset($master_array[($getdate)][$cal_time]) && sizeof($master_array[($getdate)][$cal_time]) > 0) { foreach ($master_array[($getdate)][$cal_time] as $eventKey => $loopevent) { $drawEvent = drawEventTimes ($loopevent['event_start'], $loopevent['event_end']); $j = 0; -- cgit v1.2.3