mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
Handle missing DateTime object
This commit is contained in:
parent
465498b36c
commit
a7fd0331bd
@ -351,7 +351,7 @@ class importexport_import_csv implements importexport_iface_import_record { //,
|
||||
if($format == 1)
|
||||
{
|
||||
$formatted = egw_time::createFromFormat(egw_time::$user_dateformat, $record[$name]);
|
||||
if($errors = egw_time::getLastErrors() && $errors['error_count'] == 0)
|
||||
if($formatted && $errors = egw_time::getLastErrors() && $errors['error_count'] == 0)
|
||||
{
|
||||
$record[$name] = $formatted->getTimestamp();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user