aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-03-16 00:28:54 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-03-16 00:28:54 +0000
commit281851bf42f3a2503bded854ad593693e224a0b8 (patch)
tree8844666bbc5ee14be3465b35ac716aef50e13cbc /functions/init.inc.php
parent0a5d30c7787f8d3bed6aa06d5c5e97717c8c5065 (diff)
downloadphpicalendar-281851bf42f3a2503bded854ad593693e224a0b8.tar.gz
phpicalendar-281851bf42f3a2503bded854ad593693e224a0b8.tar.bz2
phpicalendar-281851bf42f3a2503bded854ad593693e224a0b8.zip
changes to fix several warnings and notices
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r--functions/init.inc.php2
1 files changed, 1 insertions, 1 deletions
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";

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