Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/maintenance.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/maintenance.php')
-rwxr-xr-xbin/maintenance.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/maintenance.php b/bin/maintenance.php
index 39ae95b..0a4c00d 100755
--- a/bin/maintenance.php
+++ b/bin/maintenance.php
@@ -592,7 +592,7 @@ switch ($action) {
UPDATE collections
SET rating=
IFNULL(
- CAST(upvotes - downvotes AS SIGNED) * LN(upvotes + downvotes),
+ (CAST(upvotes AS SIGNED) - CAST(downvotes AS SIGNED)) * LN(upvotes + downvotes),
0)
");
$affected_rows = mysql_affected_rows();