From 06f6d97e0dac6c030664060989733860a3c9683e Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 21 Aug 2023 15:43:50 +0200 Subject: [PATCH] fixes #1964 make sure token exists before using it --- include/functions_url.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index a1bc2e4e6..08fdbd5a9 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -460,7 +460,7 @@ function make_section_in_url($params) function parse_section_url( $tokens, &$next_token) { $page=array(); - if (strncmp(@$tokens[$next_token], 'categor', 7)==0 ) + if (isset($tokens[$next_token]) and strncmp($tokens[$next_token], 'categor', 7)==0 ) { $page['section'] = 'categories'; $next_token++;