Skip to content

Commit ce0ebfc

Browse files
author
Jason Oster
committed
Fix undefined index warning
1 parent a412a29 commit ce0ebfc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Changes:
9393
More ICS input sanitizing; prevent HTML/XSS injection
9494
Bug fixes:
9595
Webcal caching now works like local caching with save_parsed_cals
96+
Performance improvements with remote calendars; reducing the number
97+
of file reads/HTTP requests made for each calendar
9698
Print view missing some events
9799
Setting time format in preferences page
98100
Default calendar selections in listbox picker
@@ -104,8 +106,10 @@ Changes:
104106
Recurring events across multiple versions of PHP; thanks to Len and gueba!
105107
Better handling of URLs and email addresses in event descriptions
106108
Navigation forms breaking PHP transparent SID
109+
Fix strange characters displayed in Locations with % characters
107110
New features:
108111
Event information displayed with Nice Titles
112+
Fixes line breaks and some HTML in event tooltips
109113
Attendee/organizer parsing and email address hyperlinking
110114
Better display of tabs/line breaks in calendar events
111115
Strip "blocked" protocols, added by some mail servers

functions/ical_parser.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
// At this point, all calendars are up-to-date, so we can simply used the pre-parsed data
6464
$parse_file = false;
6565
$calendar_name = $master_array['calendar_name'];
66-
$calendar_tz = $master_array['calendar_tz'];
66+
if (isset($master_array['calendar_tz']))
67+
$calendar_tz = $master_array['calendar_tz'];
6768
}
6869
}
6970
}
@@ -94,7 +95,8 @@
9495
if ($master_array['-1'] == 'valid cal file') {
9596
$parse_file = false;
9697
$calendar_name = $master_array['calendar_name'];
97-
$calendar_tz = $master_array['calendar_tz'];
98+
if (isset($master_array['calendar_tz']))
99+
$calendar_tz = $master_array['calendar_tz'];
98100
}
99101
}
100102
}

0 commit comments

Comments
 (0)