summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-02-23 22:53:41 +0100
committerczaks <marcin@6irc.net>2014-02-23 22:53:41 +0100
commitd274180f81d50fbb378ada700b1814d6ed163ed6 (patch)
tree150bd12ded8f82612cec81b5a2902eff418cc9d4
parent15b42f35d0e65ebb0788fc20145c03f0954f5431 (diff)
recount-bumps.txt: a small fix
-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']);