aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-10-04 09:32:29 +0000
committerjwangen <jwangen>2002-10-04 09:32:29 +0000
commitce4d8be46ccefe642883253544a4ec81bdde8cc5 (patch)
tree90b62a3a91556bcbb348ae3e3f1ba8acbc494251 /day.php
parent9d2eafe2e806a86b5617ed98040fd8667066f852 (diff)
downloadphpicalendar-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.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/day.php b/day.php
index 75cfb3a..b76b999 100644
--- a/day.php
+++ b/day.php
@@ -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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy