diff --git a/index.php b/index.php index 971aa3c..b4f4ea2 100644 --- a/index.php +++ b/index.php @@ -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)); ?>