From 281851bf42f3a2503bded854ad593693e224a0b8 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Thu, 16 Mar 2006 00:28:54 +0000 Subject: changes to fix several warnings and notices --- functions/init.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions/init.inc.php') diff --git a/functions/init.inc.php b/functions/init.inc.php index 4ebd0f6..96b9e6b 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -30,7 +30,7 @@ if ($calendar_path == '') { $calendar_path = BASE.'calendars'; } $cpath = ''; #initialize cpath to prevent later undef warnings. -if($_REQUEST['cpath']){ +if(isset($_REQUEST['cpath'])){ $cpath = str_replace('..','',$_REQUEST['cpath']); $calendar_path .= "/$cpath"; $tmp_dir .= "/$cpath"; -- cgit v1.2.3