mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2088 case-insensitive check for history.section autofill
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user