From f8d8e9ec09981e8529a60de419e2cc70326256cc Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 18 Aug 2011 23:46:03 +0000 Subject: attempt fixing "multiple states" links, RT#13922 --- FS/FS/cust_pkg.pm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'FS') diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 4a66ddcc6..8055a10c0 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -3012,16 +3012,13 @@ sub search { } @report_option; } - foreach my $any ( grep /^report_option_any/ keys %$params ) { + foreach my $any ( grep /^report_option_any/, keys %$params ) { my @report_option_any = (); - if ( exists($params->{$any}) ) { - if ( ref($params->{$any}) eq 'ARRAY' ) { - @report_option_any = @{ $params->{$any} }; - } elsif ( $params->{$any} =~ /^([,\d]*)$/ ) { - @report_option_any = split(',', $1); - } - + if ( ref($params->{$any}) eq 'ARRAY' ) { + @report_option_any = @{ $params->{$any} }; + } elsif ( $params->{$any} =~ /^([,\d]*)$/ ) { + @report_option_any = split(',', $1); } if (@report_option_any) { -- cgit v1.2.1