diff --git a/index.php b/index.php index e312a38..8cdeb20 100644 --- a/index.php +++ b/index.php @@ -164,7 +164,13 @@ function mot_courant($mots, $position) {

Horizontalement

    - definitions["horizontales"] as $y => $definitions): ?> + definitions["horizontales"] as $y => $definitions): + $definitions = array_filter( + $definitions, function($definition) { + return isset($definition[0]); + }); + ?>
  1. @@ -186,7 +192,13 @@ function mot_courant($mots, $position) {

    Verticalement

      - definitions["verticales"] as $x => $definitions): ?> + definitions["verticales"] as $x => $definitions): + $definitions = array_filter( + $definitions, function($definition) { + return isset($definition[0]); + }); + ?>