X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Feducation.func.inc.php;h=dbfba28d506e7bd2a5b2fc97ca178c54f79d2244;hb=4e7a3faabbee4c92d7a542a83d475266b7ab7983;hp=16cca5764cc6aa74f2f611071c54f11d028e72c0;hpb=93d42b4fcc6f055a428c9b63e386ac62c918d08a;p=platal.git
diff --git a/include/education.func.inc.php b/include/education.func.inc.php
index 16cca57..dbfba28 100644
--- a/include/education.func.inc.php
+++ b/include/education.func.inc.php
@@ -21,7 +21,7 @@
function education_options($current = 0)
{
- $html = '';
+ $html = '';
$res = XDB::iterator("SELECT e.id AS id, gc.countryFR AS country,
IF(CHAR_LENGTH(e.name) > 76, e.abbreviation, e.name) AS name
FROM profile_education_enum AS e
@@ -33,8 +33,11 @@ function education_options($current = 0)
$country = "";
while ($arr_edu = $res->next()) {
if ($arr_edu["country"] != $country) {
+ if ($country) {
+ $html .= '';
+ }
$country = $arr_edu["country"];
- $html .= "