diff options
author | Aleksey Lim <me@alsroot.su> | 2016-07-13 15:31:23 (GMT) |
---|---|---|
committer | Aleksey Lim <me@alsroot.su> | 2016-07-13 15:31:23 (GMT) |
commit | cd57abc0495400c82fa7070a40792af55614ca4d (patch) | |
tree | bf4e16bc372cf0d57dcfae61dcd6d8934c91a3a5 /bin/maintenance.php | |
parent | e658d924d5342394b1e7316c120cd95cfdcba3ef (diff) |
More fixes related to running in Ubuntu 14.04 environmentproduction
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(); |