From 47a61292a4137d0986b87cc4d87777e6507072f3 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 7 Jun 2016 11:22:55 +0200 Subject: [PATCH] =?utf8?q?Verkaufspreisinformationen:=20=C2=BBSeite:=C2=AB?= =?utf8?q?=20nicht=20anzeigen,=20wenn=20es=20nur=20eine=20gibt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In dem Fall ist $self->{pages}{cur} 0 oder undef und nicht 1. --- SL/Controller/SellPriceInformation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/SellPriceInformation.pm b/SL/Controller/SellPriceInformation.pm index ddaf76549..5ba23efe7 100644 --- a/SL/Controller/SellPriceInformation.pm +++ b/SL/Controller/SellPriceInformation.pm @@ -164,7 +164,7 @@ sub displayable_filter { push @texts, [ $::locale->text('Type'), $::locale->text($filter->{order}{type}) ] if $filter->{order}{type}; push @texts, [ $::locale->text('Sort By'), $column_defs->{$self->{sort_by}}{text} ] if $column_defs->{$self->{sort_by}}{text}; - push @texts, [ $::locale->text('Page'), $::locale->text($self->{pages}{cur}) ] if $self->{pages}{cur} != 1; + push @texts, [ $::locale->text('Page'), $::locale->text($self->{pages}{cur}) ] if $self->{pages}{cur} > 1; return join '; ', map { "$_->[0]: $_->[1]" } @texts; } -- 2.20.1