Resulta excepcional que esté establecido el parámetro "formato fecha"
authorPlatonides <platonides@gmail.com>
Mon, 21 May 2018 23:30:44 +0000 (01:30 +0200)
committerPlatonides <platonides@gmail.com>
Mon, 21 May 2018 23:30:44 +0000 (01:30 +0200)
html/wiki.php

index 796c7c583f9457094c21503bbc78c82b7a76f926..6a09dfc64b941e997526a4f2030e94d502de1838 100644 (file)
@@ -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 {