From: Roland Haeder Date: Sat, 25 Mar 2017 12:40:43 +0000 (+0100) Subject: don't kill when no result is found, this may break communication, thanks to @annando... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89bd080e7ec815ffc7e327c5512587a339ab6a94;p=friendica.git don't kill when no result is found, this may break communication, thanks to @annando explaining it Signed-off-by: Roland Haeder --- 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));