From 20eb7ae73f0c392c903991f94362941921e542ae Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 13 Jun 2019 05:43:00 +0000 Subject: [PATCH] Empty dates are now set to today as well --- src/Model/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');