summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/user.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/user.inc b/includes/user.inc
index d5bfc8524..02038cf9b 100644
--- a/includes/user.inc
+++ b/includes/user.inc
@@ -125,7 +125,7 @@ function user_gravity($id) {
$bonus += $weight / 5;
- return ($votes ? ($score + $weight) / $votes + $bonus : 0);
+ return ($votes ? ($score + $weight) / $votes + $bonus : $bonus);
}
?> \ No newline at end of file