recount-bumps.txt: a small fix
This commit is contained in:
parent
15b42f35d0
commit
d274180f81
@ -25,7 +25,7 @@ while ($val = $q->fetch()) {
|
|||||||
|
|
||||||
$f = $lc->fetch();
|
$f = $lc->fetch();
|
||||||
if ($val['bump'] != $f['aq']) {
|
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));
|
WHERE `id`=:id", $board));
|
||||||
$query->bindValue(":bump", $f['aq']);
|
$query->bindValue(":bump", $f['aq']);
|
||||||
$query->bindValue(":id", $val['id']);
|
$query->bindValue(":id", $val['id']);
|
||||||
|
Loading…
Reference in New Issue
Block a user