Campo idiomas
authorPlatonides <platonides@gmail.com>
Mon, 21 May 2018 22:46:41 +0000 (00:46 +0200)
committerPlatonides <platonides@gmail.com>
Mon, 21 May 2018 22:46:41 +0000 (00:46 +0200)
html/inscripcion.php

index 230aec88a5f7ba84d5fce98eca65c50cba01114a..f53e395dcc847e4f0d77af8fcab6179eb962b99d 100755 (executable)
@@ -76,6 +76,7 @@ $DE += array(
     "exigidos" => array(),
     "tipo" => "",
     "certificado" => "si",
+    "idiomas" => false,
 );
 
 $DI = parsecfg ("jembot.{$I}");
@@ -300,7 +301,7 @@ print ("<td><a href=\"{$D0["l"][$Org]}\" target=\"_blank\"><img src=\"/inscripci
 
 print ("<p style=\"font-variant:small-caps;\"><span style=\"text-align:left\">{$DI["form"]} - <a href=\"{$D0["l"][$Org]}\" target=\"_blank\">{$DI[$Org]}</a>");
 if ($DE["idiomas"]) {
-  foreach ($DE["idiomas"] as $CodI) $LI[] = "<a href=\"" . idioma ($CodI) . "\">{$DD["idioma"][$CodI]}</a>";
+  foreach ((array)$DE["idiomas"] as $CodI) $LI[] = "<a href=\"" . idioma ($CodI) . "\">{$DD["idioma"][$CodI]}</a>";
   print ("<span style=\"font-size:0.8em; background-color:gold; float:right\">" . implode ("&nbsp;&nbsp;", $LI) . "</span>");
 }
 print ("</p>\n<p>{$DI["evento"]}: <b>{$DE["nombre"][$I]}</b>. " . txtenlaces ($DE["descripción"][$I], $DP));