Calendar - Fix bug exporting list to iCal with no end date gave empty file

This commit is contained in:
nathangray 2018-08-22 10:00:40 -06:00
parent 5a7c65d0f7
commit 28781956fe

View File

@ -38,7 +38,7 @@ class calendar_export_ical extends calendar_export_csv {
{ {
$query = array( $query = array(
'start' => $options['criteria']['start'], 'start' => $options['criteria']['start'],
'end' => strtotime('+1 day',$options['criteria']['end'])-1, 'end' => $options['criteria']['end'] ? strtotime('+1 day',$options['criteria']['end'])-1 : null,
'categories' => $options['categories'], 'categories' => $options['categories'],
'daywise' => false, 'daywise' => false,
'users' => $options['criteria']['owner'], 'users' => $options['criteria']['owner'],