summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Dörre <felix@dogcraft.de>2015-04-07 21:13:25 +0200
committerBenny Baumann <BenBE@geshi.org>2015-04-29 20:35:40 +0200
commitd4e5bae630ba484b99a8f689e483f8512b591be8 (patch)
treec87867ed999dd2092ddde3218076701e309a27f1
parent16cb7044fa31e618f969d6104d976a7bc087e1be (diff)
downloadcacert-devel-d4e5bae630ba484b99a8f689e483f8512b591be8.tar.gz
cacert-devel-d4e5bae630ba484b99a8f689e483f8512b591be8.tar.xz
cacert-devel-d4e5bae630ba484b99a8f689e483f8512b591be8.zip
bug-1052: new points calc for includes/loggedin.php
-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'])."'";