aboutsummaryrefslogtreecommitdiffstats
path: root/month_bottom.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 /month_bottom.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 'month_bottom.php')
-rw-r--r--month_bottom.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/month_bottom.php b/month_bottom.php
index 0ab537b..de75a14 100644
--- a/month_bottom.php
+++ b/month_bottom.php
@@ -58,7 +58,7 @@
$minical_month = date("m", $minical_time);
$minical_year = date("Y", $minical_time);
$first_of_month = $minical_year.$minical_month."01";
- $start_day = strtotime(dateOfWeek($first_of_month, $start_week_day));
+ $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
$i = 0;
$whole_month = TRUE;
$num_of_events = 0;
@@ -68,7 +68,7 @@
$check_month = date ("m", $start_day);
if ($check_month != $minical_month) $day= "<font class=\"G10B\">$day</font>";
if ($i == 0) echo "<tr>\n";
- if (($master_array[("$daylink")]) && ($check_month == $minical_month)) {
+ if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
echo "<td align=\"center\" class=\"G10B\">\n";
echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
echo "</td>\n";
@@ -264,7 +264,7 @@
$minical_month = date("m", $minical_time);
$minical_year = date("Y", $minical_time);
$first_of_month = $minical_year.$minical_month."01";
- $start_day = strtotime(dateOfWeek($first_of_month, $start_week_day));
+ $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
$i = 0;
$whole_month = TRUE;
$num_of_events = 0;
@@ -274,7 +274,7 @@
$check_month = date ("m", $start_day);
if ($check_month != $minical_month) $day= "<font class=\"G10B\">$day</font>";
if ($i == 0) echo "<tr>\n";
- if (($master_array[("$daylink")]) && ($check_month == $minical_month)) {
+ if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
echo "<td align=\"center\" class=\"G10B\">\n";
echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
echo "</td>\n";

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