diff options
Diffstat (limited to 'bin/maintenance.php')
-rwxr-xr-x | bin/maintenance.php | 2 |
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(); |