Skip to content
Snippets Groups Projects
Commit 2c12496a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- fixed bug in new user system

parent 21dd55a7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment