diff --git a/mod/match.php b/mod/match.php index 57e05226db..2b3c7ca525 100644 --- a/mod/match.php +++ b/mod/match.php @@ -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; }