summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2015-04-07 22:41:19 +0200
committerBenny Baumann <BenBE@geshi.org>2015-04-29 20:37:04 +0200
commit17cd1e7fb941f8f0180b457d3791718e47cabf80 (patch)
tree6e431b29dfddad0f0d25788fa12358e5fc4ed381
parent16cb7044fa31e618f969d6104d976a7bc087e1be (diff)
downloadcacert-devel-17cd1e7fb941f8f0180b457d3791718e47cabf80.tar.gz
cacert-devel-17cd1e7fb941f8f0180b457d3791718e47cabf80.tar.xz
cacert-devel-17cd1e7fb941f8f0180b457d3791718e47cabf80.zip
bug-1059: new points calculation in pages/wot/9.php
-rw-r--r--pages/wot/9.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/pages/wot/9.php b/pages/wot/9.php
index 20f2c6d..f68cc16 100644
--- a/pages/wot/9.php
+++ b/pages/wot/9.php
@@ -27,8 +27,7 @@
$user = mysql_fetch_array($res);
$userlang = L10n::normalise_translation($user['language']);
- $points = mysql_num_rows(mysql_query("select sum(`points`) as `total` from `notary`
- where `to`='".intval($user['id'])."' and `deleted`=0 group by `to` HAVING SUM(`points`) > 0"));
+ $points = get_received_total_points(intval($user['id']));
if($points <= 0) {
echo _("Sorry, I was unable to locate that user.");
} else {