Calendar - fix warning "Cannot use a scalar value as an array" when saving new event with default alarm

This commit is contained in:
nathangray 2018-03-09 15:38:47 -07:00
parent b475edc7a2
commit 383b15355c

View File

@ -337,7 +337,9 @@ class calendar_uiforms extends calendar_ui
else
{
$content['alarm'][1]['offset'] = $offset = 60 * $def_alarm;
$content['start'] = $this->bo->date2array($content['start']);
$content['start'][1]['offset'] = $this->bo->date2ts($content['start']) - $offset;
$content['start'] = $this->bo->date2ts($content['start']);
}
}