From 07b809ab81edcb9789e6ee62b6d71080863d84f8 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 22 May 2018 01:02:54 +0200 Subject: [PATCH] Errores Illegal string offset '' si $DI["grupo"] no es un array --- html/gec.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.30.2