Replaced bindParam() with bindValue()
This commit is contained in:
parent
323fe4e61c
commit
aa88e0984e
@ -50,7 +50,7 @@
|
|||||||
global $board;
|
global $board;
|
||||||
|
|
||||||
$query = prepare(sprintf("SELECT 1 FROM `posts_%s` WHERE `id` = :id AND `thread` IS NULL LIMIT 1", $board['uri']));
|
$query = prepare(sprintf("SELECT 1 FROM `posts_%s` WHERE `id` = :id AND `thread` IS NULL LIMIT 1", $board['uri']));
|
||||||
$query->bindParam(':id', $id, PDO::PARAM_INT);
|
$query->bindValue(':id', $id, PDO::PARAM_INT);
|
||||||
$query->execute() or error(db_error());
|
$query->execute() or error(db_error());
|
||||||
|
|
||||||
if($query->rowCount()) {
|
if($query->rowCount()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user