Calendar: Fix validation error when setting ical export timezone preference

This commit is contained in:
nathan 2021-11-12 13:08:48 -07:00
parent 77aa807036
commit 029664ac1d

View File

@ -240,7 +240,7 @@ class calendar_hooks
$freebusy_help .= ' ' . $freebusy_url; $freebusy_help .= ' ' . $freebusy_url;
// Timezone for file exports // Timezone for file exports
$export_tzs = array('0' => lang('Use Event TZ')); $export_tzs = array(['value' => '0', 'label' => lang('Use Event TZ')]);
$export_tzs += Api\DateTime::getTimezones(); $export_tzs += Api\DateTime::getTimezones();
} }
$link_title_options = calendar_bo::get_link_options(); $link_title_options = calendar_bo::get_link_options();