aboutsummaryrefslogtreecommitdiffstats
path: root/functions/date_functions.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 /functions/date_functions.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 'functions/date_functions.php')
-rw-r--r--functions/date_functions.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index e8abe2c..cc13518 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -170,17 +170,25 @@ function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic) {
$ev = $arr["event_text"];
$event_text = strip_tags($event_text, '<b><i><u>');
}
- if ($arr["organizer"]) {
+ if (isset($arr["organizer"])) {
$organizer = urlencode(addslashes($arr["organizer"]));
+ } else {
+ $organizer = '';
}
- if ($arr["attendee"]) {
+ if (isset($arr["attendee"])) {
$attendee = urlencode(addslashes($arr["attendee"]));
+ } else {
+ $attendee = '';
}
- if ($arr["location"]) {
- $organizer = $arr["location"];
+ if (isset($arr["location"])) {
+ $location = $arr["location"];
+ } else {
+ $location = '';
}
- if ($arr["status"]) {
- $organizer = $arr["status"];
+ if (isset($arr["status"])) {
+ $status = $arr["status"];
+ } else {
+ $status = '';
}
if ($event_text != "") {
if ($lines) $event_text = word_wrap($event_text, $wrap, $lines);

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