From aa88e0984ef850e17141a4ff9ff291654716f201 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 18 Dec 2010 15:07:07 +1100 Subject: [PATCH] Replaced bindParam() with bindValue() --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index aadc8525..b8d33f5b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -50,7 +50,7 @@ global $board; $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()); if($query->rowCount()) {