Check $profile variable in mod/match

- Addresses https://github.com/friendica/friendica/issues/6337#issuecomment-470733015
This commit is contained in:
Hypolite Petovan 2019-03-07 18:42:49 -05:00
parent 4901cf76dc
commit 3127fd6be6

View file

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