X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Feducation.func.inc.php;h=9c7ab441d404d8c9192cd07e645674b38be448ef;hb=0a7895a33d0aa761b00a5df06b7f775455782669;hp=3e036a91e99ed43a026f697ad6ddb906f65af1cf;hpb=34465ab035104f739a54ec62660f04f874448627;p=platal.git
diff --git a/include/education.func.inc.php b/include/education.func.inc.php
index 3e036a9..9c7ab44 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,
+ $html = '';
+ $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");
+ ORDER BY gc.country, e.name");
$country = "";
while ($arr_edu = $res->next()) {
if ($arr_edu["country"] != $country) {
+ if ($country) {
+ $html .= '';
+ }
$country = $arr_edu["country"];
- $html .= "