From d20e5b1559a08c1e8cb6b4436e1db5542f7856ce Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 5 Dec 2025 16:22:23 +0100 Subject: [PATCH] =?UTF-8?q?pas=20de=20liste=20=C3=A0=20puce=20quand=20il?= =?UTF-8?q?=20n'y=20a=20qu'une=20d=C3=A9finition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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]); + }); + ?>