summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-02-26 23:44:49 +0100
committerMichael Tänzer <neo@nhng.de>2013-02-26 23:44:49 +0100
commit7b29aa39a788c978bbecbb32e936773c6eb7997d (patch)
treea403737d9bfe9ecae30b54a4c5e81b8ff5ba396a
parent805f9a155a97508c48e7185e5acc4124235b7472 (diff)
downloadcacert-devel-bug-1112.tar.gz
cacert-devel-bug-1112.tar.xz
cacert-devel-bug-1112.zip
bug 1112: Get TTP Assurances received, not given.bug-1112
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/wot.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php
index c5377ac..1c36df0 100644
--- a/includes/wot.inc.php
+++ b/includes/wot.inc.php
@@ -44,7 +44,7 @@
function get_number_of_ttpassurances ($userid)
{
$res = query_init ("SELECT count(*) AS `list` FROM `notary`
- WHERE (`method`='Trusted Third Parties' or `method`='TTP-Assisted') AND `from`='".intval($userid)."' ");
+ WHERE (`method`='Trusted Third Parties' or `method`='TTP-Assisted') AND `to`='".intval($userid)."' ");
$row = query_getnextrow($res);
return intval($row['list']);