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
1 changed files with 1 additions and 1 deletions

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;
}