- fixed bug in new user system

4.0.x
Dries Buytaert 2001-09-18 20:44:16 +00:00
parent 21dd55a763
commit 2c12496a04
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function rating_cron() {
$r1 = db_query("SELECT uid FROM user ORDER BY rating DESC");
while ($account = db_fetch_object($r1)) {
db_query("UPDATE user SET rating = '". rating_gravity($account->uid) ."' WHERE id = '$account->uid'");
db_query("UPDATE user SET rating = '". rating_gravity($account->uid) ."' WHERE uid = '$account->uid'");
$rating[$account->uid] = ++$i;
}