From 11c0d3d20e3b3b3f5b27d93f97918650853eb472 Mon Sep 17 00:00:00 2001 From: Khaganat Date: Wed, 27 Nov 2024 17:52:44 +0100 Subject: [PATCH] =?UTF-8?q?bug=20:=20corrections=20de=20messages=20d'erreu?= =?UTF-8?q?rs=20dans=20les=20logs=20d=C3=BB=20=C3=A0=20des=20tests=20manqu?= =?UTF-8?q?ants?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Display.template.php | 31 ++++++++++++++++++++++++++++--- index.template.php | 13 +++++++++++++ 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/Display.template.php b/Display.template.php index 9365e3a..12cacd6 100644 --- a/Display.template.php +++ b/Display.template.php @@ -41,7 +41,13 @@ function template_main() // Show the page index... "Pages: [1]". // Exclude the "reply" button. $buttons_normal = $context['normal_buttons']; - unset($buttons_normal['reply']); + //unset($buttons_normal['reply']); + // On reprends avec plus de verif : + if (isset($buttons_normal['reply'])) { + unset($buttons_normal['reply']); + } else { + error_log('Attention : La clé "reply" est absente de $buttons_normal.'); + } echo '