YxX
This commit is contained in:
@@ -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) ?: [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user