X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Feducation.func.inc.php;h=cb25855f40a624b39fdff8f823a6cb0aeb6c2dce;hb=4a8fab0a57b5e63a140ea359cb79b931bbe5b426;hp=dbfba28d506e7bd2a5b2fc97ca178c54f79d2244;hpb=9fce7016cd4cca4445f5c1037fe72f70b71ac3e5;p=platal.git diff --git a/include/education.func.inc.php b/include/education.func.inc.php index dbfba28..cb25855 100644 --- a/include/education.func.inc.php +++ b/include/education.func.inc.php @@ -1,6 +1,6 @@  '; - $res = XDB::iterator("SELECT e.id AS id, gc.countryFR AS country, + $res = XDB::iterator("SELECT e.id AS id, gc.country, IF(CHAR_LENGTH(e.name) > 76, e.abbreviation, e.name) AS name FROM profile_education_enum AS e LEFT JOIN geoloc_countries AS gc ON (e.country = gc.iso_3166_1_a2) WHERE EXISTS (SELECT * FROM profile_education_degree AS d - WHERE e.id = d.eduid) - ORDER BY gc.countryFR, e.name"); + WHERE e.id = d.eduid) AND e.name != {?} + ORDER BY gc.country, e.name", + Profile::EDU_X); $country = ""; while ($arr_edu = $res->next()) { if ($arr_edu["country"] != $country) {