Fix undefined index: id in Protocol\Diaspora

This commit is contained in:
Hypolite Petovan 2018-10-16 18:28:27 -04:00
parent c4318fe05e
commit 2b1d15de87

View File

@ -949,6 +949,7 @@ class Diaspora
$person = DBA::selectFirst('fcontact', [], ['network' => Protocol::DIASPORA, 'addr' => $handle]); $person = DBA::selectFirst('fcontact', [], ['network' => Protocol::DIASPORA, 'addr' => $handle]);
if (!DBA::isResult($person)) { if (!DBA::isResult($person)) {
$person = $r; $person = $r;
$person['id'] = 0;
} }
} }
} }