aboutsummaryrefslogtreecommitdiffstats
path: root/week.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-11-02 05:17:17 +0000
committerjwangen <jwangen>2002-11-02 05:17:17 +0000
commit15e50df43b59493358d034ca684450aec36093c9 (patch)
treed052ede69aec8cf4fde15499f6d17c775451cac3 /week.php
parentc1b79428e7e0ce1c094457932e1941fd397768ce (diff)
downloadphpicalendar-15e50df43b59493358d034ca684450aec36093c9.tar.gz
phpicalendar-15e50df43b59493358d034ca684450aec36093c9.tar.bz2
phpicalendar-15e50df43b59493358d034ca684450aec36093c9.zip
fixed all errors which error_reporting() was returning
Diffstat (limited to 'week.php')
-rw-r--r--week.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/week.php b/week.php
index 880d1c5..a7bb38b 100644
--- a/week.php
+++ b/week.php
@@ -169,6 +169,8 @@ for ($i=0;$i<7;$i++) {
$event_text2 = urlencode(addslashes($all_day_text));
$all_day_text = word_wrap($all_day_text, 12, $allday_week_lines);
$description = addslashes(urlencode($allday["description"]));
+ $event_start = '';
+ $event_end = '';
echo "<tr>\n";
echo "<td valign=\"top\" align=\"center\" class=\"eventbg\"><a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description')\"><font color=\"#ffffff\">$all_day_text</font></a></td>\n";
echo "</tr>\n";
@@ -224,9 +226,9 @@ for ($i=0;$i<7;$i++) {
$this_time_arr = $master_array[$thisday][$cal_time];
}
- if ("$day_start" == "$cal_time" && is_array($master_array[$thisday])) {
+ if ("$day_start" == "$cal_time" && isset($master_array[$thisday]) && is_array($master_array[$thisday])) {
foreach($master_array[$thisday] as $time_key => $time_arr) {
- if ((int)$time_key < (int)$cal_time && is_array($time_arr)) {
+ if ((int)$time_key < (int)$cal_time && is_array($time_arr) && $time_key != '-1') {
foreach($time_arr as $event_tmp) {
if ((int)$event_tmp['event_end'] > (int)$cal_time) {
$this_time_arr[] = $event_tmp;

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