From 58ab428a5799023ee260ffba56b70df33da34668 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Wed, 5 Apr 2006 04:53:10 +0000 Subject: minor changes in init.inc.php --- functions/init.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions/init.inc.php') diff --git a/functions/init.inc.php b/functions/init.inc.php index a41b249..cebeda5 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -149,10 +149,10 @@ foreach ($cal_filenames as $cal_filename) { // Otherwise it is a local calendar. else { // Check blacklisted. - if (in_array($cal_filename, $blacklisted_cals)) { + if (in_array($cal_filename, $blacklisted_cals) && $cal_filename !='') { exit(error($lang['l_error_restrictedcal'], $cal_filename)); } - $local_cals[] = getCalendarName(urldecode($cal_filename)); + $local_cals[] = urldecode(str_replace(".ics", '', basename($cal_filename))); } } -- cgit v1.2.3