diff options
author | root <root@cacert1.it-sls.de> | 2011-05-25 06:38:23 +0200 |
---|---|---|
committer | root <root@cacert1.it-sls.de> | 2011-05-25 06:38:23 +0200 |
commit | b218463f92eb382f0c38f79a21402d293b0b4700 (patch) | |
tree | 8ab28be1f00925a65921d84474976746853e7b46 /includes/wot.inc.php | |
parent | db3715f55501f9819a18d93af7a6978d03ba4c27 (diff) | |
download | cacert-devel-b218463f92eb382f0c38f79a21402d293b0b4700.tar.gz cacert-devel-b218463f92eb382f0c38f79a21402d293b0b4700.tar.xz cacert-devel-b218463f92eb382f0c38f79a21402d293b0b4700.zip |
827 fixed CATs-test, fixed calculation of points
Diffstat (limited to 'includes/wot.inc.php')
-rw-r--r-- | includes/wot.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php index 1d8283b..f65070f 100644 --- a/includes/wot.inc.php +++ b/includes/wot.inc.php @@ -101,7 +101,7 @@ function get_cats_state ($userid) { - $res = query_init ("select * from `cats_passed` inner join `cats_variant` on `cats_passed`.`variant_id` = `cats_variant`.`id` and `cats_variant`.`type_id` = 11 + $res = query_init ("select * from `cats_passed` inner join `cats_variant` on `cats_passed`.`variant_id` = `cats_variant`.`id` and `cats_variant`.`type_id` = 1 WHERE `cats_passed`.`user_id` = '".intval($userid)."'"); return mysql_num_rows($res); } @@ -402,7 +402,7 @@ switch ($row['method']) { case 'Face to Face Meeting': // count Face to Face only - $sum_experience += 2; + $sum_experience += 2*intval($row['number']); break; } |