From: Platonides Date: Mon, 21 May 2018 23:17:35 +0000 (+0200) Subject: Undefined variable: D in wiki.php X-Git-Url: http://gitweb.wikimedia.es/?a=commitdiff_plain;h=afa317c9326a71269b15833109f88f32335ece35;p=inscripciones%2Finscribirse Undefined variable: D in wiki.php --- diff --git a/html/wiki.php b/html/wiki.php index f0a2fc2..796c7c5 100644 --- a/html/wiki.php +++ b/html/wiki.php @@ -21,9 +21,17 @@ function fecha ($F, $DI, $Extras = array ("Año")) { $R = date ("Y-m-d", $T); if (in_array ("Hora", $Extras)) $R .= date (", H:i", $T); } else { - if (in_array ("DíaSem", $Extras)) $D = (in_array ("Larga", $Extras) ? "{$DI["díasemc"][date ("N", $T)]}, " : "{$DI["díasem"][date ("N", $T)]} "); + if (in_array ("DíaSem", $Extras)) { + $D = (in_array ("Larga", $Extras) ? "{$DI["díasemc"][date ("N", $T)]}, " : "{$DI["díasem"][date ("N", $T)]} "); + } else { + $D = ""; + } $A = (in_array ("Año", $Extras) ? " Y" : ""); - if (in_array ("Hora", $Extras)) $H = ", H:i" . (in_array ("Larga", $Extras) ? " (e)" : ""); + if (in_array ("Hora", $Extras)) { + $H = ", H:i" . (in_array ("Larga", $Extras) ? " (e)" : ""); + } else { + $H = ""; + } $M = (in_array ("Larga", $Extras) ? "de " . $DI["mesc"][date ("n", $T)] . ($A ? " de" : "") : $DI["mes"][date ("n", $T)]); $R = $D . (date ("j ", $T) . $M . date ("{$A}{$H}", $T)); }