aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2010-04-15 19:39:53 +0000
committerJason Oster <parasytic@users.sourceforge.net>2010-04-15 19:39:53 +0000
commitce0ebfc5272a8bb682f218d4d58d3d8d68e15f8a (patch)
tree4c3a214a0c5df8e2e89e9e908eefebaced5dd90a /functions
parenta412a2938e0708db0cfd4ba55527e58f6ebdf465 (diff)
downloadphpicalendar-ce0ebfc5272a8bb682f218d4d58d3d8d68e15f8a.tar.gz
phpicalendar-ce0ebfc5272a8bb682f218d4d58d3d8d68e15f8a.tar.bz2
phpicalendar-ce0ebfc5272a8bb682f218d4d58d3d8d68e15f8a.zip
Fix undefined index warning
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 36b2b3e..61e2587 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -63,7 +63,8 @@ if ($phpiCal_config->save_parsed_cals == 'yes') {
// At this point, all calendars are up-to-date, so we can simply used the pre-parsed data
$parse_file = false;
$calendar_name = $master_array['calendar_name'];
- $calendar_tz = $master_array['calendar_tz'];
+ if (isset($master_array['calendar_tz']))
+ $calendar_tz = $master_array['calendar_tz'];
}
}
}
@@ -94,7 +95,8 @@ if ($phpiCal_config->save_parsed_cals == 'yes') {
if ($master_array['-1'] == 'valid cal file') {
$parse_file = false;
$calendar_name = $master_array['calendar_name'];
- $calendar_tz = $master_array['calendar_tz'];
+ if (isset($master_array['calendar_tz']))
+ $calendar_tz = $master_array['calendar_tz'];
}
}
}

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