From e3cda5108a8e4d835de56b2f647fb1c6ce6e6f86 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 18 Jan 2024 11:26:02 +0100 Subject: [PATCH] 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']; }