summaryrefslogtreecommitdiff
path: root/www/api/ccsr.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/api/ccsr.php')
-rw-r--r--www/api/ccsr.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/api/ccsr.php b/www/api/ccsr.php
index 7efdf8d..a0f36e2 100644
--- a/www/api/ccsr.php
+++ b/www/api/ccsr.php
@@ -42,7 +42,7 @@ require_once '../../includes/lib/check_weak_key.php';
}
if(count($emails) <= 0)
die("404,Wasn't able to match any emails sent against your account");
- $query = "select sum(`points`) as `points` from `notary` where `to`='$memid' group by `to`";
+ $query = "select sum(`points`) as `points` from `notary` where `to`='$memid' and `notary`.`deleted`=0 group by `to`";
$row = mysql_fetch_assoc(mysql_query($query));
$points = $row['points'];