Avoid storing "null" values

This commit is contained in:
Michael 2018-03-17 13:09:21 +00:00
parent e2f5350e61
commit 8700d2a8ad
2 changed files with 8 additions and 7 deletions

View file

@ -2079,8 +2079,8 @@ class DFRN
return false;
}
$fields = ['title' => $item["title"], 'body' => $item["body"],
'tag' => $item["tag"], 'changed' => DateTimeFormat::utcNow(),
$fields = ['title' => defaults($item["title"], ''), 'body' => defaults($item["body"], ''),
'tag' => defaults($item["tag"], ''), 'changed' => DateTimeFormat::utcNow(),
'edited' => DateTimeFormat::utc($item["edited"])];
$condition = ["`uri` = ? AND `uid` IN (0, ?)", $item["uri"], $importer["importer_uid"]];