mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
fixes #1964 make sure token exists before using it
This commit is contained in:
parent
4ac772224f
commit
06f6d97e0d
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue