From 611ced38b4a736cfa0792998965f53b62da75374 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Tue, 10 Dec 2024 11:54:26 +0100 Subject: Fix search topics --- src/application/actions/search/get.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application/actions/search/get.php b/src/application/actions/search/get.php index bc1bdba..fab0a7f 100644 --- a/src/application/actions/search/get.php +++ b/src/application/actions/search/get.php @@ -27,7 +27,7 @@ if ($query !== null) { $topic = new Topic; $topic->id = $item->topicId; if ($db->fetch($topic)) - $topicLookup[$topic->id] = &$topic; + $topicLookup[$topic->id] = $topic; } if (!isset($attachmentLookup[$item->id])) { $attachmentLookup[$item->id] = $db->fetchCustom(Attachment::class, 'WHERE post_id = $1', [ $item->id ]); -- cgit v1.2.3