diff options
Diffstat (limited to 'www/api/cemails.php')
-rw-r--r-- | www/api/cemails.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/api/cemails.php b/www/api/cemails.php index 0d067ea..260ca4f 100644 --- a/www/api/cemails.php +++ b/www/api/cemails.php @@ -25,7 +25,7 @@ echo "200,Authentication Ok\n"; $user = mysql_fetch_assoc($res); $memid = $user['id']; - $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']; echo "CS=".intval($user['codesign'])."\n"; |