From deecf9dd2c051c04111aab45f7e852ab30c1f7d6 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Thu, 19 Sep 2024 16:35:01 +0200 Subject: Fix wrong user in search results --- src/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index f2d0f86..d3a0c1d 100644 --- a/src/index.php +++ b/src/index.php @@ -24,7 +24,7 @@ use Symfony\Contracts\Service\Attribute\Required; header_remove("X-Powered-By"); -const MYSTICBB_VERSION = "0.2.0-dev"; +const MYSTICBB_VERSION = "0.2.0"; if (($_SERVER["HTTP_USER_AGENT"] ?? "") === "") { http_response_code(403); @@ -1543,7 +1543,7 @@ if ($_action === "auth") { $user = new User; $user->id = $item->authorId; if ($db->fetch($user)) - $userLookup[$item->authorId] = &$user; + $userLookup[$item->authorId] = $user; } } $end_time = microtime(true); -- cgit v1.2.3