diff --git a/public/page/community.php b/public/page/community.php index 8b45d0c..6be7699 100644 --- a/public/page/community.php +++ b/public/page/community.php @@ -75,11 +75,7 @@ if ($pdo) { ORDER BY ft.created_at DESC LIMIT 50"; $stmt = $pdo->prepare($sql); - $bound = []; - foreach ($params as $k => $v) { - $bound[':' . ltrim($k, ':')] = $v; - } - $stmt->execute($bound); + $stmt->execute($params); $threads = $stmt->fetchAll(PDO::FETCH_ASSOC) ?: []; }