This commit is contained in:
2025-12-30 00:28:32 +01:00
parent ba462f8e49
commit 79321fa633

View File

@@ -75,7 +75,11 @@ if ($pdo) {
ORDER BY ft.created_at DESC ORDER BY ft.created_at DESC
LIMIT 50"; LIMIT 50";
$stmt = $pdo->prepare($sql); $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) ?: []; $threads = $stmt->fetchAll(PDO::FETCH_ASSOC) ?: [];
} }