forked from leftypol/leftypol
pages.php: mod_merge cast post id
This commit is contained in:
parent
e80160f18c
commit
5ee20431e2
1 changed files with 1 additions and 1 deletions
|
@ -1655,7 +1655,7 @@ function mod_merge(Context $ctx, $originBoard, $postID) {
|
|||
error($config['error']['noaccess']);
|
||||
|
||||
$query = prepare(sprintf('SELECT * FROM ``posts_%s`` WHERE `id` = :id AND `thread` IS NULL', $originBoard));
|
||||
$query->bindValue(':id', $postID);
|
||||
$query->bindValue(':id', (int)$postID, \PDO::PARAM_INT);
|
||||
$query->execute() or error(db_error($query));
|
||||
if (!$post = $query->fetch(PDO::FETCH_ASSOC)) {
|
||||
error($config['error']['404']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue