diff options
Diffstat (limited to 'includes/loggedin.php')
-rw-r--r-- | includes/loggedin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/loggedin.php b/includes/loggedin.php index 4f9b8e8..de61ee1 100644 --- a/includes/loggedin.php +++ b/includes/loggedin.php @@ -113,7 +113,7 @@ if($_SERVER['HTTP_HOST'] == $_SESSION['_config']['securehostname'] && $_SESSION['profile']['id'] > 0 && $_SESSION['profile']['loggedin'] > 0) { - $query = "select sum(`points`) as `total` from `notary` where `to`='".$_SESSION['profile']['id']."' group by `to`"; + $query = "select sum(`points`) as `total` from `notary` where `to`='".$_SESSION['profile']['id']."' and `deleted` = 0 group by `to`"; $res = mysql_query($query); $row = mysql_fetch_assoc($res); $_SESSION['profile']['points'] = $row['total']; |