From 572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa Mon Sep 17 00:00:00 2001 From: Chad Little Date: Thu, 29 May 2003 06:27:14 +0000 Subject: Fixed a tons of E_ALL errors for smoother installs. --- functions/date_functions.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'functions/date_functions.php') 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, ''); } - 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); -- cgit v1.2.3