From: Platonides Date: Mon, 21 May 2018 23:37:20 +0000 (+0200) Subject: Arreglados más notices X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=9bb407629df422c2be4e102383879913b79ac54b;p=inscripciones%2Finscribirse Arreglados más notices --- diff --git a/html/gec.php b/html/gec.php index 87b2d52..7f96228 100644 --- a/html/gec.php +++ b/html/gec.php @@ -13,7 +13,7 @@ function txtenlaces ($T, $DP) { function infogrupo ($G, $DE, $DI, $DP, $DT, $MostrarLoc) { # Quitar condición con DI-grupo-G una vez migrado todo a los DE: if (isset($DE["lugar"][$G])) { - $Info = ($DT[$DE["lugar"][$G]][3] ? "{$DT[$DE["lugar"][$G]][0]}" : $DT[$DE["lugar"][$G]][0]); + $Info = (isset($DT[$DE["lugar"][$G]][3]) ? "{$DT[$DE["lugar"][$G]][0]}" : $DT[$DE["lugar"][$G]][0]); $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]}"; diff --git a/html/inscripcion.php b/html/inscripcion.php index 22eb9c8..31e80c6 100755 --- a/html/inscripcion.php +++ b/html/inscripcion.php @@ -22,7 +22,7 @@ ini_set ("display_errors", 1); function plazas ($G, $Org, $DE, $DI) { # Incluir información de lista de espera en su momento $Plazas = $DE["plazas"][$G]; # Por separado porque el explode de un nulo devuelve un elemento - if ($DE["inscritos"][$G]) $Plazas -= count (explode (";", $DE["inscritos"][$G])); + if (!empty($DE["inscritos"][$G])) $Plazas -= count (explode (";", $DE["inscritos"][$G])); if ($Plazas == 0) { return "Sin plazas - Te esperamos en futuras actividades de {$DI[$Org]}; marca la casilla inferior para recibir información"; } else {