From: Platonides Date: Mon, 21 May 2018 23:02:54 +0000 (+0200) Subject: Errores Illegal string offset '' si $DI["grupo"] no es un array X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=07b809ab81edcb9789e6ee62b6d71080863d84f8;p=inscripciones%2Finscribirse Errores Illegal string offset '' si $DI["grupo"] no es un array --- diff --git a/html/gec.php b/html/gec.php index 1488cf3..0c3b34c 100644 --- a/html/gec.php +++ b/html/gec.php @@ -18,8 +18,10 @@ function infogrupo ($G, $DE, $DI, $DP, $DT, $MostrarLoc) { $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]}"; - } else { + } elseif (is_array($DI["grupo"])) { $Info = $DI["grupo"][$G]; + } else { + $Info = ""; } return $Info; }