diff --git a/src/Model/Mail.php b/src/Model/Mail.php index 9f3682573e..90b54b6fc3 100644 --- a/src/Model/Mail.php +++ b/src/Model/Mail.php @@ -46,7 +46,7 @@ class Mail $msg['guid'] = Item::guidFromUri($msg['uri'], $host); } - $msg['created'] = (isset($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow()); + $msg['created'] = (!empty($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow()); DBA::lock('mail');