]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
Move mod/home to src/Module/Home
[friendica.git] / mod / match.php
index 451821f9f1285a0969ee3ed5841cd5483166d0cd..2b3c7ca525b695ae45571afb9e9f193676869301 100644 (file)
@@ -25,6 +25,9 @@ use Friendica\Util\Proxy as ProxyUtils;
  * @param App $a App
  *
  * @return string
+ * @throws ImagickException
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws Exception
  */
 function match_content(App $a)
 {
@@ -72,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;
                        }