From: Platonides Date: Mon, 21 May 2018 23:30:44 +0000 (+0200) Subject: Resulta excepcional que esté establecido el parámetro "formato fecha" X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=1df7dc2003f34491c08d8e54ee080c602aa80a96;p=inscripciones%2Finscribirse Resulta excepcional que esté establecido el parámetro "formato fecha" --- 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 {