bug 1112: Get TTP Assurances received, not given. bug-1112
authorMichael Tänzer <neo@nhng.de>
Tue, 26 Feb 2013 22:44:49 +0000 (23:44 +0100)
committerMichael Tänzer <neo@nhng.de>
Tue, 26 Feb 2013 22:44:49 +0000 (23:44 +0100)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/wot.inc.php

index c5377ac..1c36df0 100644 (file)
@@ -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']);