From a7fd0331bd9c2d3ace6e898cb328a79ad3448136 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 6 Feb 2012 18:40:12 +0000 Subject: [PATCH] Handle missing DateTime object --- importexport/inc/class.importexport_import_csv.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index 5ee0a99744..f96cfd5e67 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -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(); }