Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/maintenance.php
diff options
context:
space:
mode:
authorAleksey Lim <me@alsroot.su>2016-07-13 15:31:23 (GMT)
committer Aleksey Lim <me@alsroot.su>2016-07-13 15:31:23 (GMT)
commitcd57abc0495400c82fa7070a40792af55614ca4d (patch)
treebf4e16bc372cf0d57dcfae61dcd6d8934c91a3a5 /bin/maintenance.php
parente658d924d5342394b1e7316c120cd95cfdcba3ef (diff)
More fixes related to running in Ubuntu 14.04 environmentproduction
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();