diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 5e7cc02a36..2aa672ef6d 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -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"]]; diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index 5b419e42ef..d10c4db320 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -1302,7 +1302,7 @@ class PortableContact if (isset($data->version)) { $network = NETWORK_DFRN; - $noscrape = $data->no_scrape_url; + $noscrape = defaults($data->no_scrape_url, ''); $version = $data->version; $site_name = $data->site_name; $info = $data->info;