diff options
author | Benny Baumann <BenBE@geshi.org> | 2015-04-29 20:43:16 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2015-04-29 20:43:16 +0200 |
commit | cdca646992a618c9063c912af12997ef1d0695a5 (patch) | |
tree | 62b68ccd2d678bb08110deb6839e0df734109095 /includes/account.php | |
parent | 547015437883dc49038ac42e25bde7d94446de53 (diff) | |
parent | a33a127a7a89309e426593414ee633338be2517c (diff) | |
download | cacert-devel-cdca646992a618c9063c912af12997ef1d0695a5.tar.gz cacert-devel-cdca646992a618c9063c912af12997ef1d0695a5.tar.xz cacert-devel-cdca646992a618c9063c912af12997ef1d0695a5.zip |
Merge branch 'bug-1053' into bug-1042
Diffstat (limited to 'includes/account.php')
-rw-r--r-- | includes/account.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/includes/account.php b/includes/account.php index 6dacf2d..843dbe6 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1275,10 +1275,7 @@ function buildSubjectFromSession() { if($oldid == 13 && $process != "") { - $ddquery = "select sum(`points`) as `total` from `notary` where `to`='".intval($_SESSION['profile']['id'])."' and `deleted` = 0 group by `to`"; - $ddres = mysql_query($ddquery); - $ddrow = mysql_fetch_assoc($ddres); - $_SESSION['profile']['points'] = $ddrow['total']; + update_points_in_profile(); if($_SESSION['profile']['points'] == 0) { @@ -1337,10 +1334,7 @@ function buildSubjectFromSession() { $_SESSION['profile'] = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".intval($_SESSION['profile']['id'])."'")); $_SESSION['profile']['loggedin'] = 1; - $ddquery = "select sum(`points`) as `total` from `notary` where `to`='".intval($_SESSION['profile']['id'])."' and `deleted` = 0 group by `to`"; - $ddres = mysql_query($ddquery); - $ddrow = mysql_fetch_assoc($ddres); - $_SESSION['profile']['points'] = $ddrow['total']; + update_points_in_profile(); $id = 13; |