From d274180f81d50fbb378ada700b1814d6ed163ed6 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 23 Feb 2014 22:53:41 +0100 Subject: [PATCH] recount-bumps.txt: a small fix --- tools/recount-bumps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);