Commit 2c12496a authored by Dries's avatar Dries
Browse files

- fixed bug in new user system

parent 21dd55a7
...@@ -31,7 +31,7 @@ function rating_cron() { ...@@ -31,7 +31,7 @@ function rating_cron() {
$r1 = db_query("SELECT uid FROM user ORDER BY rating DESC"); $r1 = db_query("SELECT uid FROM user ORDER BY rating DESC");
while ($account = db_fetch_object($r1)) { 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; $rating[$account->uid] = ++$i;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment