827 fixed CATs-test, fixed calculation of points
authorroot <root@cacert1.it-sls.de>
Wed, 25 May 2011 04:38:23 +0000 (06:38 +0200)
committerroot <root@cacert1.it-sls.de>
Wed, 25 May 2011 04:38:23 +0000 (06:38 +0200)
includes/wot.inc.php

index 1d8283b..f65070f 100644 (file)
        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);
        }
                        switch ($row['method'])
                        {
                                case 'Face to Face Meeting':                    // count Face to Face only
-                                       $sum_experience += 2;
+                                       $sum_experience += 2*intval($row['number']);
                                        break;
                        }