From 26f8c332ef9603033760b3f6724e0f4f1c255f21 Mon Sep 17 00:00:00 2001 From: nonmakina Date: Mon, 18 Jan 2021 04:26:18 -0600 Subject: [PATCH] Fetch one, instead of all --- templates/themes/semirand/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/themes/semirand/theme.php b/templates/themes/semirand/theme.php index ae82bdd8..9f5592e7 100644 --- a/templates/themes/semirand/theme.php +++ b/templates/themes/semirand/theme.php @@ -105,7 +105,7 @@ $query->bindValue(':id', $thread_id, PDO::PARAM_INT); $query->execute() or error(db_error($query)); - return $query->fetchAll(PDO::FETCH_ASSOC); + return $query->fetch(PDO::FETCH_ASSOC); } /**