diff options
author | Chad Little <clittle@users.sourceforge.net> | 2003-05-29 18:28:00 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2003-05-29 18:28:00 +0000 |
commit | 74ed9436b9d44a08ec836611dee60353d9020614 (patch) | |
tree | 7089d40730971a229ea968e62f8d23c8429577e1 /functions/init.inc.php | |
parent | 572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa (diff) | |
download | phpicalendar-74ed9436b9d44a08ec836611dee60353d9020614.tar.gz phpicalendar-74ed9436b9d44a08ec836611dee60353d9020614.tar.bz2 phpicalendar-74ed9436b9d44a08ec836611dee60353d9020614.zip |
More error_reporting cleanup.
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 05326f8..24df31d 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -61,12 +61,16 @@ if (isset($HTTP_GET_VARS['cal']) && $HTTP_GET_VARS['cal'] != '') { $cal_filename = stripslashes($cal_decoded); } } else { - $calcheck = $calendar_path.'/'.$default_cal_check.'.ics'; - $calcheckopen = @fopen($calcheck, "r"); - if ($calcheckopen == FALSE) { - $cal_filename = $default_cal; + if (isset($default_cal_check)) { + $calcheck = $calendar_path.'/'.$default_cal_check.'.ics'; + $calcheckopen = @fopen($calcheck, "r"); + if ($calcheckopen == FALSE) { + $cal_filename = $default_cal; + } else { + $cal_filename = $default_cal_check; + } } else { - $cal_filename = $default_cal_check; + $cal_filename = $default_cal; } } |