mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
fixes #1964 make sure token exists before using it
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user