Check $profile variable in mod/match
- Addresses https://github.com/friendica/friendica/issues/6337#issuecomment-470733015
This commit is contained in:
parent
4901cf76dc
commit
3127fd6be6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue