summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-04-30 00:26:58 +0200
committerBenny Baumann <BenBE@geshi.org>2015-04-30 00:26:58 +0200
commitf0cdbfab3852d7bad78df54d4c474ca2f6b0f736 (patch)
treef5e3764f58c064352894e9cc214fd7ed61b1a143
parent6c68caa8d2679675721f3e8ba2210f6ce8f491f1 (diff)
parent17cd1e7fb941f8f0180b457d3791718e47cabf80 (diff)
downloadcacert-devel-f0cdbfab3852d7bad78df54d4c474ca2f6b0f736.tar.gz
cacert-devel-f0cdbfab3852d7bad78df54d4c474ca2f6b0f736.tar.xz
cacert-devel-f0cdbfab3852d7bad78df54d4c474ca2f6b0f736.zip
Merge branch 'bug-1059' into bug-1042
-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 {