aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-05-29 06:27:14 +0000
committerChad Little <clittle@users.sourceforge.net>2003-05-29 06:27:14 +0000
commit572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa (patch)
tree26a63e35f8477a44fb541598877f8166fe7fd1c2 /day.php
parentaa4bae7e1a095471174d42d79628ed72fa7ce901 (diff)
downloadphpicalendar-572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa.tar.gz
phpicalendar-572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa.tar.bz2
phpicalendar-572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa.zip
Fixed a tons of E_ALL errors for smoother installs.
Diffstat (limited to 'day.php')
-rw-r--r--day.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/day.php b/day.php
index dbd3bf1..89b6f21 100644
--- a/day.php
+++ b/day.php
@@ -33,7 +33,7 @@ $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day));
$dayborder = 0;
$nbrGridCols = 1;
-if (is_array($master_array[($getdate)])) {
+if (isset($master_array[($getdate)])) {
foreach($master_array[($getdate)] as $ovlKey => $ovlValue) {
if ($ovlKey != '-1') {
foreach($ovlValue as $ovl2Value) {
@@ -59,7 +59,7 @@ if (is_array($master_array[($getdate)])) {
}
?>
-<?php if (is_array($master_array['-2'])) include (BASE.'functions/todo.js'); ?>
+<?php if (isset($master_array['-2'])) include (BASE.'functions/todo.js'); ?>
</head>
<body bgcolor="#FFFFFF">
<?php include (BASE.'includes/header.inc.php'); ?>
@@ -101,7 +101,7 @@ if (is_array($master_array[($getdate)])) {
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
<?php
// The all day events returned here.
- if ($master_array[($getdate)]['-1']) {
+ if (isset($master_array[($getdate)]['-1'])) {
echo "<tr>\n";
echo '<td colspan="3" height="24">'."\n";
echo '<table width="100%" border="0" cellspacing="1" cellpadding="4">'."\n";
@@ -179,7 +179,7 @@ if (is_array($master_array[($getdate)])) {
}
// add events that overlap $day_start instead of cutting them out completely
- if ("$day_start" == "$cal_time" && is_array($master_array[$getdate])) {
+ if ("$day_start" == "$cal_time" && isset($master_array[$getdate])) {
foreach($master_array[$getdate] as $time_key => $time_arr) {
if ((int)$time_key < (int)$cal_time && is_array($time_arr) && $time_key != '-1') {
foreach($time_arr as $event_tmp) {

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