From 3127fd6be6d650cb94e773c50114ee9e9db7e54a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 7 Mar 2019 18:42:49 -0500 Subject: [PATCH] Check $profile variable in mod/match - Addresses https://github.com/friendica/friendica/issues/6337#issuecomment-470733015 --- mod/match.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5