aboutsummaryrefslogtreecommitdiffstats
path: root/functions/init.inc.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2007-10-12 06:41:33 +0000
committerJim Hu <jimhu@users.sourceforge.net>2007-10-12 06:41:33 +0000
commitb2b80439dfb4078a003b0a768c634b50759ddcb0 (patch)
tree999fce06df2493b1a0f090c2e97f72ba59602913 /functions/init.inc.php
parent86d615c773ff5cddb28d24064157b94d61695ac4 (diff)
downloadphpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.tar.gz
phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.tar.bz2
phpicalendar-b2b80439dfb4078a003b0a768c634b50759ddcb0.zip
deal with various unset variable warning situations
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 b6c99ee..1a0007f 100644
--- a/functions/init.inc.php
+++ b/functions/init.inc.php
@@ -50,7 +50,7 @@ if (isset($user_template["$cpath"])){
$template = $user_template["$cpath"];
}
#set up specific webcals for a particular cpath
-if (is_array($more_webcals[$cpath])){
+if (isset($more_webcals) && is_array($more_webcals[$cpath])){
$list_webcals = array_merge($list_webcals, $more_webcals["$cpath"]);
}
include_once(BASE.'error.php');

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