summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Kohl2024-09-19 16:35:01 +0200
committerJonas Kohl2024-09-19 16:42:05 +0200
commitdeecf9dd2c051c04111aab45f7e852ab30c1f7d6 (patch)
tree131a62e6e479ee8c67df485285b7a06878a919ff
parentc42d6db8cd736cfdadde9e9810aff79b34f0d9b6 (diff)
Fix wrong user in search resultsv0.2.0
-rw-r--r--src/index.php4
1 files 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);