ParĂ¡metro g de filtrado de grupos
authorPlatonides <platonides@gmail.com>
Mon, 21 May 2018 22:34:36 +0000 (00:34 +0200)
committerPlatonides <platonides@gmail.com>
Mon, 21 May 2018 22:39:32 +0000 (00:39 +0200)
html/inscripcion.php

index d87321316fa5e0fe73943584293e1ccd2335a8b8..e9e95892b36cc5b38d5a97661b89c613ab335125 100755 (executable)
@@ -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 {