Merge pull request #7820 from annando/fix-warning

Fix a notice
This commit is contained in:
Hypolite Petovan 2019-11-06 15:23:33 -05:00 committed by GitHub
commit f21edefe15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2476,7 +2476,7 @@ class Diaspora
return false; return false;
} }
$cid = Contact::getIdForURL($ret['url'], $uid); $cid = Contact::getIdForURL($ret['url'], $importer['uid']);
if (!empty($cid)) { if (!empty($cid)) {
$contact = DBA::selectFirst('contact', [], ['id' => $cid, 'network' => Protocol::NATIVE_SUPPORT]); $contact = DBA::selectFirst('contact', [], ['id' => $cid, 'network' => Protocol::NATIVE_SUPPORT]);
} else { } else {