summaryrefslogtreecommitdiff
path: root/tools/recount-bumps.php
diff options
context:
space:
mode:
Diffstat (limited to 'tools/recount-bumps.php')
-rw-r--r--tools/recount-bumps.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/recount-bumps.php b/tools/recount-bumps.php
index 633ce4da..5adc74d8 100644
--- a/tools/recount-bumps.php
+++ b/tools/recount-bumps.php
@@ -25,7 +25,7 @@ while ($val = $q->fetch()) {
$f = $lc->fetch();
if ($val['bump'] != $f['aq']) {
- $query = prepare(sprintf("UPDATE ``posts_%s`` SET `bump`=$f[aq]
+ $query = prepare(sprintf("UPDATE ``posts_%s`` SET `bump`=:bump
WHERE `id`=:id", $board));
$query->bindValue(":bump", $f['aq']);
$query->bindValue(":id", $val['id']);