aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-05-29 18:28:00 +0000
committerChad Little <clittle@users.sourceforge.net>2003-05-29 18:28:00 +0000
commit74ed9436b9d44a08ec836611dee60353d9020614 (patch)
tree7089d40730971a229ea968e62f8d23c8429577e1 /functions/init.inc.php
parent572e8a6a1f9dbc8e2a7ac0dc480689487b4217aa (diff)
downloadphpicalendar-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.php14
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;
}
}

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