From 1df7dc2003f34491c08d8e54ee080c602aa80a96 Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 22 May 2018 01:30:44 +0200 Subject: [PATCH] =?utf8?q?Resulta=20excepcional=20que=20est=C3=A9=20establ?= =?utf8?q?ecido=20el=20par=C3=A1metro=20"formato=20fecha"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- html/wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/wiki.php b/html/wiki.php index 796c7c5..6a09dfc 100644 --- a/html/wiki.php +++ b/html/wiki.php @@ -17,7 +17,7 @@ function parsecfg ($F) { # Se admiten matrices numéricas function fecha ($F, $DI, $Extras = array ("Año")) { $T = ($F > 946684800 ? $F : strtotime (chop ($F, "Z"))); # Convertir a timestamp si no lo es (comparamos con el timestamp de 2000-01-01 00:00 UTC) - if ($DI["formato fecha"] == "ISO") { + if (isset($DI["formato fecha"]) && $DI["formato fecha"] == "ISO") { $R = date ("Y-m-d", $T); if (in_array ("Hora", $Extras)) $R .= date (", H:i", $T); } else { -- 2.30.2