summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-04-29 20:42:46 +0200
committerBenny Baumann <BenBE@geshi.org>2015-04-29 20:42:46 +0200
commit547015437883dc49038ac42e25bde7d94446de53 (patch)
treef44d83cb1a38f37daf4b64bee19272d0e6ce25df
parent5d64059340c696a09a9d1b013fc381ccd5354967 (diff)
parentd4e5bae630ba484b99a8f689e483f8512b591be8 (diff)
downloadcacert-devel-547015437883dc49038ac42e25bde7d94446de53.tar.gz
cacert-devel-547015437883dc49038ac42e25bde7d94446de53.tar.xz
cacert-devel-547015437883dc49038ac42e25bde7d94446de53.zip
Merge branch 'bug-1052' into bug-1042
-rw-r--r--includes/loggedin.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/loggedin.php b/includes/loggedin.php
index c14f8c2..8a1dab3 100644
--- a/includes/loggedin.php
+++ b/includes/loggedin.php
@@ -102,12 +102,9 @@
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'] == "")
+ If($_SESSION['profile']['language'] == "")
{
$query = "update `users` set `language`='".L10n::get_translation()."'
where `id`='".intval($_SESSION['profile']['id'])."'";