mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
calendar: avoid error during CSV import if start or end dates were not able to be parsed
This commit is contained in:
parent
874da32f81
commit
7f936cdaf1
@ -102,7 +102,7 @@ class calendar_import_csv extends importexport_basic_import_csv {
|
||||
}
|
||||
|
||||
// Handle errors in length or start/end date
|
||||
if($record->start > $record->end)
|
||||
if(is_numeric($record->start) && is_numeric($record->end) && $record->start > $record->end)
|
||||
{
|
||||
$record->end = $record->start + $GLOBALS['egw_info']['user']['preferences']['calendar']['defaultlength'] * 60;
|
||||
$this->warnings[$import_csv->get_current_position()] = lang('error: starttime has to be before the endtime !!!');
|
||||
|
Loading…
Reference in New Issue
Block a user