From 427d8c864f0da755d1515e85d48188c2642d6e4a Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 18 Jan 2024 11:29:13 +0100 Subject: [PATCH] (cp e3cda5108) fixes #2088 case-insensitive check for history.section autofill --- include/functions.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/functions.inc.php b/include/functions.inc.php index 7ade51abf..f66cb4083 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -476,7 +476,10 @@ UPDATE '.USER_INFOS_TABLE.' $conf['history_sections_cache'] = safe_unserialize($conf['history_sections_cache']); - if (in_array($page['section'], $conf['history_sections_cache'])) + if ( + in_array($page['section'], $conf['history_sections_cache']) + or in_array(strtolower($page['section']), array_map('strtolower', $conf['history_sections_cache'])) + ) { $section = $page['section']; }