diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-18 15:07:07 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-18 15:07:07 +1100 |
| commit | aa88e0984ef850e17141a4ff9ff291654716f201 (patch) | |
| tree | 370230ae56fdfb832c8936afdd4e27a07cbe5833 /inc/functions.php | |
| parent | 323fe4e61c722d2c6954f3b21ecd83ba8a22bda9 (diff) | |
Replaced bindParam() with bindValue()
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |
