use correct comparison for cutting off layout position list

This commit is contained in:
Graham Knop 2008-11-24 16:55:04 +00:00
parent e86b9a7a6f
commit 5c4ba42feb

View file

@ -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) {