X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Feducation.func.inc.php;h=51437db1e5ddfd6d93d913ac2ecd4c9b918e1875;hb=16d2c88314364b5e79936f4262d453dff03abdad;hp=9d2e2b732bbbd8dc13c0d46df7bbf625b3d37607;hpb=b032b01b8919b36ec66f8a0395132953d8c01cf2;p=platal.git
diff --git a/include/education.func.inc.php b/include/education.func.inc.php
index 9d2e2b7..51437db 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 .= "