From 922069a8dc3e8a41482e23bd68ea2ad90aea9b37 Mon Sep 17 00:00:00 2001 From: tofulm Date: Sun, 5 Jan 2025 22:38:51 +0100 Subject: [PATCH] fix: si on appelle cette fonction comme un filtre, $num peut etre un entier, on gere donc ce cas --- gamutable_fonctions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamutable_fonctions.php b/gamutable_fonctions.php index f60ebb5..da061c4 100644 --- a/gamutable_fonctions.php +++ b/gamutable_fonctions.php @@ -70,6 +70,11 @@ EOJS; } function gamutable_generer_js($id_objet, $num){ + if (intval($num) === 2) { + $num = "_deux"; + } else { + $num = null; + } $html = <<