From: Michael Date: Thu, 13 Jun 2019 05:43:00 +0000 (+0000) Subject: Empty dates are now set to today as well X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=20eb7ae73f0c392c903991f94362941921e542ae;p=friendica.git Empty dates are now set to today as well --- 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');