summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/loggedin.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/loggedin.php b/includes/loggedin.php
index c14f8c2..cf36592 100644
--- a/includes/loggedin.php
+++ b/includes/loggedin.php
@@ -102,10 +102,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`='".intval($_SESSION['profile']['id'])."' and `deleted` = 0 group by `to`";
- $res = mysql_query($query);
- $row = mysql_fetch_assoc($res);
- $_SESSION['profile']['points'] = $row['total'];
+ update_points_in_profile();
if($_SESSION['profile']['language'] == "")
{