summaryrefslogtreecommitdiff
path: root/src/application/actions/search/get.php
diff options
context:
space:
mode:
authorJonas Kohl2024-12-10 11:54:26 +0100
committerJonas Kohl2024-12-10 11:54:26 +0100
commit611ced38b4a736cfa0792998965f53b62da75374 (patch)
treee3792680dde8228946773a0f9cb2842a03298cd0 /src/application/actions/search/get.php
parentc81ecbf2192ffa5643b0e6d14c8e86610c3a1fb6 (diff)
Fix search topics
Diffstat (limited to 'src/application/actions/search/get.php')
-rw-r--r--src/application/actions/search/get.php2
1 files changed, 1 insertions, 1 deletions
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 ]);