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