fixes #1964 make sure token exists before using it

This commit is contained in:
plegall 2023-08-21 15:43:50 +02:00
parent 4ac772224f
commit 06f6d97e0d

View file

@ -460,7 +460,7 @@ function make_section_in_url($params)
function parse_section_url( $tokens, &$next_token) function parse_section_url( $tokens, &$next_token)
{ {
$page=array(); $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'; $page['section'] = 'categories';
$next_token++; $next_token++;