From 13b0cbddf8a392272a0ebd6de5e1a23cc268206d Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 18 Oct 2022 11:07:48 +0200 Subject: [PATCH] template flag bug --- core/class/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/class/template.class.php b/core/class/template.class.php index f71fc6f9..d7c6a90c 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -488,7 +488,7 @@ class template switch ($langId) { case '': break; - case in_array($langId, core::$languages): + case array_key_exists($langId, core::$languages): $lang = $langId; break; case 'selected':