]> git.mxchange.org Git - friendica.git/commitdiff
don't kill when no result is found, this may break communication, thanks to @annando...
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 12:40:43 +0000 (13:40 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 12:42:09 +0000 (13:42 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
include/dfrn.php

index 9192e94303472063130915d70b9524ab2d3c24c4..555fa57f213c1165c8af60202741df40eb3765a6 100644 (file)
@@ -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));