This commit is contained in:
2025-12-30 00:33:41 +01:00
parent 79321fa633
commit 1efe5ccea7

View File

@@ -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) ?: [];
}