Same same but different

This commit is contained in:
Michael 2018-03-17 20:56:56 +00:00
parent c42c121e51
commit 9930c61263

View file

@ -2079,8 +2079,8 @@ class DFRN
return false;
}
$fields = ['title' => defaults($item["title"], ''), 'body' => defaults($item["body"], ''),
'tag' => defaults($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"]];