use correct comparison for cutting off layout position list
This commit is contained in:
parent
e86b9a7a6f
commit
5c4ba42feb
1 changed files with 2 additions and 1 deletions
|
|
@ -203,7 +203,8 @@ sub prepareView {
|
|||
my @positions = split /\./, $self->get("contentPositions");
|
||||
# cut positions off at the number we found in the template
|
||||
$#positions = $numPositions - 1
|
||||
if $numPositions > scalar @positions;
|
||||
if $numPositions < scalar @positions;
|
||||
|
||||
my $positionIndex = 0;
|
||||
my @found;
|
||||
foreach my $position (@positions) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue