X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FDFRN.php;h=ec4557e8221a70f833b090d2da98f32f8cb78b2b;hb=2c19b8c8e60815b8781ce1b56c3f56fe86b92476;hp=fe2a608ec6fd0358fd94757e08ae0f6e471dfe81;hpb=ecf809c7ae508b71bc0fcdf5956660eb129fa141;p=friendica.git diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index fe2a608ec6..ec4557e822 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2216,11 +2216,10 @@ class DFRN { Logger::log("Process verb ".$item["verb"]." and object-type ".$item["object-type"]." for entrytype ".$entrytype, Logger::DEBUG); - if (($entrytype == DFRN::TOP_LEVEL)) { + if (($entrytype == DFRN::TOP_LEVEL) && !empty($importer['id'])) { // The filling of the the "contact" variable is done for legcy reasons // The functions below are partly used by ostatus.php as well - where we have this variable - $r = q("SELECT * FROM `contact` WHERE `id` = %d", intval($importer["id"])); - $contact = $r[0]; + $contact = Contact::select([], ['id' => $importer['id']]); // Big question: Do we need these functions? They were part of the "consume_feed" function. // This function once was responsible for DFRN and OStatus.