From 15e50df43b59493358d034ca684450aec36093c9 Mon Sep 17 00:00:00 2001 From: jwangen Date: Sat, 2 Nov 2002 05:17:17 +0000 Subject: fixed all errors which error_reporting() was returning --- week.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'week.php') diff --git a/week.php b/week.php index 880d1c5..a7bb38b 100644 --- a/week.php +++ b/week.php @@ -169,6 +169,8 @@ for ($i=0;$i<7;$i++) { $event_text2 = urlencode(addslashes($all_day_text)); $all_day_text = word_wrap($all_day_text, 12, $allday_week_lines); $description = addslashes(urlencode($allday["description"])); + $event_start = ''; + $event_end = ''; echo "\n"; echo "$all_day_text\n"; echo "\n"; @@ -224,9 +226,9 @@ for ($i=0;$i<7;$i++) { $this_time_arr = $master_array[$thisday][$cal_time]; } - if ("$day_start" == "$cal_time" && is_array($master_array[$thisday])) { + if ("$day_start" == "$cal_time" && isset($master_array[$thisday]) && is_array($master_array[$thisday])) { foreach($master_array[$thisday] as $time_key => $time_arr) { - if ((int)$time_key < (int)$cal_time && is_array($time_arr)) { + if ((int)$time_key < (int)$cal_time && is_array($time_arr) && $time_key != '-1') { foreach($time_arr as $event_tmp) { if ((int)$event_tmp['event_end'] > (int)$cal_time) { $this_time_arr[] = $event_tmp; -- cgit v1.2.3