From: Platonides Date: Mon, 21 May 2018 23:19:35 +0000 (+0200) Subject: $DE["extra"][$G] puede no estar definido X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=31be83105b37b5c719afaf81da9f40087c3b150f;p=inscripciones%2Finscribirse $DE["extra"][$G] puede no estar definido --- diff --git a/html/gec.php b/html/gec.php index 0c3b34c..9c0485a 100644 --- a/html/gec.php +++ b/html/gec.php @@ -17,7 +17,7 @@ function infogrupo ($G, $DE, $DI, $DP, $DT, $MostrarLoc) { $Info .= ($MostrarLoc && $DT[$DE["lugar"][$G]][1] ? txtenlaces ($DT[$DE["lugar"][$G]][1], $DP) : ""); $F = fecha ($DE["tiempo0"][$G], $DI, array ("Hora", "Año")); if ($F != "N/D") $Info .= ", {$F} - {$DE["tiempo1"][$G]}"; - if ($DE["extra"][$G]) $Info .= " - {$DE["extra"][$G]}"; + if (isset($DE["extra"][$G])) $Info .= " - {$DE["extra"][$G]}"; } elseif (is_array($DI["grupo"])) { $Info = $DI["grupo"][$G]; } else { @@ -25,5 +25,3 @@ function infogrupo ($G, $DE, $DI, $DP, $DT, $MostrarLoc) { } return $Info; } - -?> diff --git a/html/inscripcion.php b/html/inscripcion.php index b26aab1..f09baab 100755 --- a/html/inscripcion.php +++ b/html/inscripcion.php @@ -78,6 +78,7 @@ $DE += array( "certificado" => "si", "idiomas" => false, "hashtag" => false, + "extra" => "", ); $DI = parsecfg ("jembot.{$I}");