don't kill when no result is found, this may break communication, thanks to @annando explaining it

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-03-25 13:40:43 +01:00
parent 6d5826e188
commit 89bd080e7e
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View 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));