mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02: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']);
|
$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'];
|
$section = $page['section'];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user