Merge pull request #6824 from MrPetovan/bug/warnings

Check $profile variable in mod/match
This commit is contained in:
Tobias Diekershoff 2019-03-08 06:23:51 +01:00 committed by GitHub
commit 02be8a086e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ function match_content(App $a)
$profile = $msearch->results[$i];
// Already known contact
if (Contact::getIdForURL($profile->url, local_user(), true)) {
if (!$profile || Contact::getIdForURL($profile->url, local_user(), true)) {
continue;
}