Commit 7df4880d authored by Yadd's avatar Yadd
Browse files

Fix "next" link when cfg is 1 (#575)

parent f72a70c5
......@@ -655,7 +655,7 @@ sub metadatas {
my $id = -1;
my ($ind) = map { $id++; $_ == $res->{cfgNum} ? ($id) : () } @a;
if ($ind) { $res->{prev} = $a[ $ind - 1 ]; }
if ( $ind and $ind < $#a ) { $res->{next} = $a[ $ind + 1 ]; }
if ( defined $ind and $ind < $#a ) { $res->{next} = $a[ $ind + 1 ]; }
if ( $self->can('userId') ) {
$self->userLogger->info( 'User '
. $self->userId($req)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment