diff options
author | jwangen <jwangen> | 2002-10-04 09:32:29 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-10-04 09:32:29 +0000 |
commit | ce4d8be46ccefe642883253544a4ec81bdde8cc5 (patch) | |
tree | 90b62a3a91556bcbb348ae3e3f1ba8acbc494251 /day.php | |
parent | 9d2eafe2e806a86b5617ed98040fd8667066f852 (diff) | |
download | phpicalendar-ce4d8be46ccefe642883253544a4ec81bdde8cc5.tar.gz phpicalendar-ce4d8be46ccefe642883253544a4ec81bdde8cc5.tar.bz2 phpicalendar-ce4d8be46ccefe642883253544a4ec81bdde8cc5.zip |
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.
Diffstat (limited to 'day.php')
-rw-r--r-- | day.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 '<tr>'."\n"; echo '<td valign="top" align="center" bgcolor="#6699CC"><a class="psf" href="javascript:openEventInfo(\''.$event_text2.'\', \''.$calendar_name.'\', \''.$event_start.'\', \''.$event_end.'\', \''.$description.'\')"><font color="#ffffff"><i>'.$all_day_text.'</i></font></a></td>'."\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; |