diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-05-24 16:10:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-05-24 16:10:42 +0000 |
commit | c9c14ca5938913afbfd775ab9dcc36db6901ccba (patch) | |
tree | 45d3dd1caac174fda9e2bcc077ce03e3992d4c33 | |
parent | 7b56d82aa227d3ea32a7e89121510983d9bf31de (diff) | |
download | brdo-c9c14ca5938913afbfd775ab9dcc36db6901ccba.tar.gz brdo-c9c14ca5938913afbfd775ab9dcc36db6901ccba.tar.bz2 |
- Fixed a small glitch in the moderation queue.
-rw-r--r-- | modules/queue.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/queue.module b/modules/queue.module index 6b2e86354..6beda85ab 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -36,15 +36,15 @@ function queue_vote($id, $vote) { // Update submission's score- and votes-field: db_query("UPDATE node SET score = score $vote, votes = votes + 1, users = '". field_set($node->users, $user->userid, $vote) ."' WHERE nid = $id"); - if (variable_get("post_threshold", 4, $node) <= $node->score) { + if (variable_get("post_threshold", 4, $node) <= $node->score - 1) { node_save(array(nid => $id, status => $status[posted]), array(status)); watchdog("message", "node: posted '$node->title' - moderation"); } - else if (variable_get("dump_threshold", -2, $node) >= $node->score) { + else if (variable_get("dump_threshold", -2, $node) >= $node->score - 1) { node_save(array(nid => $id, status => $status[dumped]), array(status)); watchdog("message", "node: dumped '$node->title' - moderation"); } - else if (variable_get("expire_threshold", 8, $node) <= $node->votes) { + else if (variable_get("expire_threshold", 8, $node) <= $node->votes - 1) { node_save(array(nid => $id, status => $status[expired]), array(status)); watchdog("message", "node: expired '$node->title' - moderation"); } |