summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/wot.inc.php4
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;
}