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 2e9089357f
commit 9587f35164

View File

@ -38,7 +38,7 @@ class calendar_export_ical extends calendar_export_csv {
{
$query = array(
'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'],
'daywise' => false,
'users' => $options['criteria']['owner'],