summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manager/application/models/User.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/manager/application/models/User.php b/manager/application/models/User.php
index 3085123..443dac5 100644
--- a/manager/application/models/User.php
+++ b/manager/application/models/User.php
@@ -108,8 +108,8 @@ class Default_Model_User {
* user's points
*/
public function refreshPoints() {
- $query = 'select sum(`points`) as `total` from `notary` '.
- 'where `to` = :user';
+ $query = "select sum(`points`) as `total` from `notary` " .
+ "where `to` = :user and method != 'Administrative Increase' and from != to";
$query_params['user'] = $this->id;
$row = $this->db->query($query, $query_params)->fetch();
if ($row['total'] === null) $row['total'] = 0;