https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2ae4371
)
Empty dates are now set to today as well
author
Michael
<heluecht@pirati.ca>
Thu, 13 Jun 2019 05:43:00 +0000
(
05:43
+0000)
committer
Michael
<heluecht@pirati.ca>
Thu, 13 Jun 2019 05:43:00 +0000
(
05:43
+0000)
src/Model/Mail.php
patch
|
blob
|
history
diff --git
a/src/Model/Mail.php
b/src/Model/Mail.php
index
9f36825
..
90b54b6
100644
(file)
--- 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');