Misc/Fixup

* the first GET param, the one the page view is derived from, should not be an array
This commit is contained in:
Sarjuuk 2025-12-12 15:16:03 +01:00
parent eb70065e0f
commit a90d1d242a

View file

@ -13,7 +13,14 @@ $pageParam = '';
parse_str(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY), $query);
foreach ($query as $page => $param)
{
// fix page calls - pages like saerch use the page call directly and expect it as lower case
// could be an array
if (!is_string($param))
{
$pageCall = ''; // just .. fail
break;
}
// fix page calls - pages like search use the page call directly and expect it as lower case
if (preg_match('/[A-Z]/', $page))
{
$url = str_replace('?'.$page.'=', '?'.Util::lower($page).'=', $_SERVER['REQUEST_URI']);