X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Feducation.func.inc.php;h=dbfba28d506e7bd2a5b2fc97ca178c54f79d2244;hb=1daa72c23026adf3e057c7b6c47d5d35837258b5;hp=4da4acd16e64c958d7b5ca489673a927b318f8a4;hpb=b7eec8d37994d1320405279e216dcece3bde39f6;p=platal.git
diff --git a/include/education.func.inc.php b/include/education.func.inc.php
index 4da4acd..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 .= "