Fix for error on line 40. Thanks ceb.

This commit is contained in:
skeeter 2001-08-14 01:49:31 +00:00
parent 19007a79d5
commit 75ec9c5e9f

View File

@ -22,11 +22,9 @@
} }
unset($d1); unset($d1);
global $date;
if ($phpgw_info['user']['preferences']['calendar']['mainscreen_showevents']) 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'); $cal = CreateObject('calendar.uicalendar');
echo "\n".'<tr valign="top"><td><table border="0" cols="3"><tr><td align="center" width="35%" valign="top"><!-- BEGIN Calendar info -->'."\n" echo "\n".'<tr valign="top"><td><table border="0" cols="3"><tr><td align="center" width="35%" valign="top"><!-- BEGIN Calendar info -->'."\n"
. $cal->mini_calendar( . $cal->mini_calendar(
@ -36,16 +34,17 @@
'year' => $cal->bo->year, 'year' => $cal->bo->year,
'link' => 'day' 'link' => 'day'
) )
).'</td><td align="center">'.'<table border="0" width="100%" cellspacing="0" cellpadding="0">' ).'</td><td align="center"><table border="0" width="100%" cellspacing="0" cellpadding="0">'
. '<tr><td align="center">.lang($phpgw->common->show_date(time()-((60*60)*intval($phpgw_info['user']['preferences']['common']['tz_offset'])),'F')) . '<tr><td align="center">'.lang($phpgw->common->show_date($time,'F')).' '.$cal->bo->day.', '
.' '.$cal->bo->day.', '.$cal->bo->year.'</tr></td>'.'<tr><td bgcolor="'.$phpgw_info['theme']['bg_text'] .$cal->bo->year.'</tr></td><tr><td bgcolor="'.$phpgw_info['theme']['bg_text']
.'" valign="top">'.$cal->print_day( .'" valign="top">'.$cal->print_day(
Array( Array(
'year' => $cal->bo->year, 'year' => $cal->bo->year,
'month' => $cal->bo->month, 'month' => $cal->bo->month,
'day' => $cal->bo->day 'day' => $cal->bo->day
) )
).'</td></tr></table>'."\n"."\n".'<!-- END Calendar info --></table></td></tr>'."\n"; ).'</td></tr></table>'."\n\n".'<!-- END Calendar info --></table></td></tr>'."\n";
unset($cal); unset($cal);
} }
flush();
?> ?>