diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2007-10-12 06:41:33 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2007-10-12 06:41:33 +0000 |
commit | b2b80439dfb4078a003b0a768c634b50759ddcb0 (patch) | |
tree | 999fce06df2493b1a0f090c2e97f72ba59602913 /functions/template.php | |
parent | 86d615c773ff5cddb28d24064157b94d61695ac4 (diff) | |
download | phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.tar.gz phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.tar.bz2 phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.zip |
deal with various unset variable warning situations
Diffstat (limited to 'functions/template.php')
-rw-r--r-- | functions/template.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/functions/template.php b/functions/template.php index 9efd8ce..e5aab05 100644 --- a/functions/template.php +++ b/functions/template.php @@ -900,6 +900,8 @@ class Page { $langtype = $daysofweek_lang; } + $weekday_loop = ''; + $middle = ''; for ($i=0; $i<7; $i++) { $day_num = date("w", $start_day); $weekday = $langtype[$day_num]; @@ -1006,6 +1008,7 @@ class Page { $u_start = strtotime($m_start); $i=0; $seen_events = array(); + $middle = ''; do { if (isset($master_array[$m_start])) { foreach ($master_array[$m_start] as $cal_time => $event_times) { @@ -1020,7 +1023,7 @@ class Page { $switch['CALNAME'] = $val['calname']; if (!isset($val['event_start'])) { $switch['START_TIME'] = $lang['l_all_day']; - $switch['EVENT_TEXT'] = openevent($m_start, $cal_time, $uid, $val, $month_event_lines, 15, 'psf'); + $switch['EVENT_TEXT'] = openevent($m_start, $cal_time, $uid, $val, @$month_event_lines, 15, 'psf'); $switch['DESCRIPTION'] = urldecode($val['description']); } else { $event_start = $val['start_unixtime']; |