X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Feducation.func.inc.php;h=dbfba28d506e7bd2a5b2fc97ca178c54f79d2244;hb=75691c6015d22f2630ea2eefcad0e23f20b4c347;hp=3e036a91e99ed43a026f697ad6ddb906f65af1cf;hpb=34465ab035104f739a54ec62660f04f874448627;p=platal.git
diff --git a/include/education.func.inc.php b/include/education.func.inc.php
index 3e036a9..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 .= "