From 75ec9c5e9f872f8a16a81895bb80041e6c398061 Mon Sep 17 00:00:00 2001 From: skeeter Date: Tue, 14 Aug 2001 01:49:31 +0000 Subject: [PATCH] Fix for error on line 40. Thanks ceb. --- calendar/inc/hook_home.inc.php | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/calendar/inc/hook_home.inc.php b/calendar/inc/hook_home.inc.php index c5cd9623dc..e8a1e7eeb3 100755 --- a/calendar/inc/hook_home.inc.php +++ b/calendar/inc/hook_home.inc.php @@ -22,30 +22,29 @@ } unset($d1); - global $date; - if ($phpgw_info['user']['preferences']['calendar']['mainscreen_showevents']) { - $date = $phpgw->common->show_date(time()-((60*60)*intval($phpgw_info['user']['preferences']['common']['tz_offset'])),'Ymd'); + $time = time() - ((60*60) * intval($phpgw_info['user']['preferences']['common']['tz_offset'])); $cal = CreateObject('calendar.uicalendar'); echo "\n".''."\n"; + ).'
'."\n" . $cal->mini_calendar( Array( - 'day' => $cal->bo->day, + 'day' => $cal->bo->day, 'month' => $cal->bo->month, 'year' => $cal->bo->year, 'link' => 'day' ) - ).''.'' - . ''.'
.lang($phpgw->common->show_date(time()-((60*60)*intval($phpgw_info['user']['preferences']['common']['tz_offset'])),'F')) - .' '.$cal->bo->day.', '.$cal->bo->year.'
' + . '
'.lang($phpgw->common->show_date($time,'F')).' '.$cal->bo->day.', ' + .$cal->bo->year.'
'.$cal->print_day( Array( - 'year'=>$cal->bo->year, - 'month'=>$cal->bo->month, - 'day'=>$cal->bo->day + 'year' => $cal->bo->year, + 'month' => $cal->bo->month, + 'day' => $cal->bo->day ) - ).'
'."\n"."\n".'
'."\n\n".''."\n"; unset($cal); } + flush(); ?>