From 89bd080e7ec815ffc7e327c5512587a339ab6a94 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 25 Mar 2017 13:40:43 +0100 Subject: [PATCH] don't kill when no result is found, this may break communication, thanks to @annando explaining it Signed-off-by: Roland Haeder --- include/dfrn.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/include/dfrn.php b/include/dfrn.php index 9192e94303..555fa57f21 100644 --- a/include/dfrn.php +++ b/include/dfrn.php @@ -915,12 +915,7 @@ class dfrn { intval($owner["uid"]), dbesc(normalise_link($mention))); - if (!dbm::is_result($r)) { - /// @TODO Maybe some logging? - killme(); - } - - if ($r[0]["forum"] OR $r[0]["prv"]) { + if (dbm::is_result($r) AND ($r[0]["forum"] OR $r[0]["prv"])) { xml::add_element($doc, $entry, "link", "", array("rel" => "mentioned", "ostatus:object-type" => ACTIVITY_OBJ_GROUP, "href" => $mention));