$DE["extra"][$G] puede no estar definido
authorPlatonides <platonides@gmail.com>
Mon, 21 May 2018 23:19:35 +0000 (01:19 +0200)
committerPlatonides <platonides@gmail.com>
Mon, 21 May 2018 23:19:35 +0000 (01:19 +0200)
html/gec.php
html/inscripcion.php

index 0c3b34c4d43d733ba149285753ff40ca7d695444..9c0485afad94f68135d4abb51557be99e2389cde 100644 (file)
@@ -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;
 }
-
-?>
index b26aab1d5017629a6be7cad3b4d885bcd31ba2b1..f09baab1a5466a968929d016db2fc5a384faceab 100755 (executable)
@@ -78,6 +78,7 @@ $DE += array(
     "certificado" => "si",
     "idiomas" => false,
     "hashtag" => false,
+    "extra" => "",
 );
 
 $DI = parsecfg ("jembot.{$I}");