From: Hypolite Petovan Date: Thu, 7 Mar 2019 23:42:49 +0000 (-0500) Subject: Check $profile variable in mod/match X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3127fd6be6d650cb94e773c50114ee9e9db7e54a;p=friendica.git Check $profile variable in mod/match - Addresses https://github.com/friendica/friendica/issues/6337#issuecomment-470733015 --- 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; }