bug fix
This commit is contained in:
@@ -154,18 +154,12 @@ function definition_courante($definitions, $position) {
|
||||
$title = [];
|
||||
[$iddh, $definition_horizontale] = definition_courante($grille->definitions["horizontales"][$y], $x);
|
||||
[$iddv, $definition_verticale] = definition_courante($grille->definitions["verticales"][$x], $y);
|
||||
if (isset($definition_horizontale["definition"]))
|
||||
$title[0] = "→ " . $definition_horizontale["definition"];
|
||||
if (isset($definition_horizontale["nb_mots"]))
|
||||
$title[0] .= " (" . $definition_horizontale["nb_mots"] . ")";
|
||||
if (isset($definition_horizontale["auteur"]))
|
||||
$title[0] .= " (" . $definition_horizontale["auteur"] . ")";
|
||||
if (isset($definition_verticale["definition"]))
|
||||
$title[1] = "↓ " . $definition_verticale["definition"];
|
||||
if (isset($definition_verticale["nb_mots"]))
|
||||
$title[0] .= " (" . $definition_verticale["nb_mots"] . ")";
|
||||
if (isset($definition_verticale["auteur"]))
|
||||
$title[1] .= " (" . $definition_verticale["auteur"] . ")";
|
||||
if (isset($definition_horizontale["definition"])) $title[0] = "→ " . $definition_horizontale["definition"];
|
||||
if (isset($definition_horizontale["nb_mots"])) $title[0] .= " [" . $definition_horizontale["nb_mots"] . " mots]";
|
||||
if (isset($definition_horizontale["auteur"])) $title[0] .= " (" . $definition_horizontale["auteur"] . ")";
|
||||
if (isset($definition_verticale["definition"])) $title[1] = "↓ " . $definition_verticale["definition"];
|
||||
if (isset($definition_verticale["nb_mots"])) $title[1] .= " [" . $definition_verticale["nb_mots"] . " mots]";
|
||||
if (isset($definition_verticale["auteur"])) $title[1] .= " (" . $definition_verticale["auteur"] . ")";
|
||||
$title = htmlspecialchars(implode("\n", $title));
|
||||
?>
|
||||
<input id="case-<?= chr($x + 65) . ($y + 1) ?>" type="text" maxlength="1" size="1"
|
||||
|
||||
Reference in New Issue
Block a user