From 9e82dc38bb88e064064b73ba3c05fad6fc6357a6 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 22 May 2018 00:34:36 +0200 Subject: [PATCH] =?utf8?q?Par=C3=A1metro=20g=20de=20filtrado=20de=20grupos?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- html/inscripcion.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/inscripcion.php b/html/inscripcion.php index d873213..e9e9589 100755 --- a/html/inscripcion.php +++ b/html/inscripcion.php @@ -96,8 +96,9 @@ if ((!empty($DE["cerrado"]) || strtotime ("now") - strtotime ($DE["inicio"]) > $ # file_put_contents ("debug.log", print_r ($_GET, TRUE) . "RUI {$_SERVER["REQUEST_URI"]}\nRQS {$_SERVER["REDIRECT_QUERY_STRING"]}\nRS {$_SERVER["QUERY_STRING"]}\nRDU {$_SERVER["REDIRECT_URL"]}\nSN {$_SERVER["SCRIPT_NAME"]}"); -if ($_GET["g"]) { - foreach ($_GET["g"] as $G) { +if (isset($_GET["g"])) { + /* Se filtran los grupos disponibles, con uno o varios criterios */ + foreach ((array)$_GET["g"] as $G) { $Grupos = array_merge ((array) $Grupos, preg_filter ("/^({$G})/", "$1", array_keys ($DE["plazas"]))); } } else { -- 2.30.2