From 975ff86baea5602e9b83f94fbd29f5faf8eb0ce4 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 27 Jul 2019 15:40:43 +0000 Subject: [PATCH] Fix: The $contact error is expected to be a single row array --- src/Protocol/DFRN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 5fceab3264..12c93ea2fb 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -2176,7 +2176,7 @@ class DFRN 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 - $contact = Contact::select([], ['id' => $importer['id']]); + $contact = Contact::selectFirst([], ['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. -- 2.39.5