diff options
| author | ivan <ivan> | 2011-08-18 23:46:02 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2011-08-18 23:46:02 +0000 |
| commit | 1fc2440c9e792a488c3197f49023d3e98a6adeaf (patch) | |
| tree | cab7286d474024c217ba7a189666c5653edbcd23 /FS | |
| parent | 6f5b68a5dc6a6b145c88aa1b2bad3848cc6f8788 (diff) | |
attempt fixing "multiple states" links, RT#13922
Diffstat (limited to 'FS')
| -rw-r--r-- | FS/FS/cust_pkg.pm | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index 347c04bb1..c1a066d45 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -3018,16 +3018,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) { |
