Evito notice Undefined offset 0
authorPlatonides <platonides@gmail.com>
Mon, 21 May 2018 23:14:41 +0000 (01:14 +0200)
committerPlatonides <platonides@gmail.com>
Mon, 21 May 2018 23:14:41 +0000 (01:14 +0200)
html/inscripcion.php

index 7790978dc78f1bb6ab3198589a117fccb26ab931..b26aab1d5017629a6be7cad3b4d885bcd31ba2b1 100755 (executable)
@@ -414,8 +414,10 @@ if (count ($Grupos) > 1) {
     foreach ($Grupos as $G) {
         if (substr ($G, 0, 2) != $BloqueAnt) {
             $Fila = 0;
-            $MaxF = max ($MaxF, count ($D[$Col++]));
+            if (isset($D[$Col]))
+                $MaxF = max ($MaxF, count ($D[$Col]));
             $BloqueAnt = substr ($G, 0, 2);
+            $Col++;
         }
 
         $Plazas = plazas ($G, $Org, $DE, $DI);