1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

recount-bumps.txt: a small fix

This commit is contained in:
czaks 2014-02-23 22:53:41 +01:00
parent 15b42f35d0
commit d274180f81

View File

@ -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']);