diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-06-09 11:10:22 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-06-09 11:10:22 -0700 |
commit | a8fac25bb0a138fd8fa7d87c6e4cee1de6fd4748 (patch) | |
tree | e70c4eb8ace31efd08cfb4886f2a36dcf274ccdc /FS | |
parent | 2e2f9b6ea9598b6e087baa9b9f0974ba0f2cff44 (diff) |
fix cust_svc_unsorted when there are no services, RT#27267
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_pkg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index a1f2cb1a5..4a98b7329 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -2818,7 +2818,7 @@ sub cust_svc_unsorted { sub cust_svc_unsorted_arrayref { my $self = shift; - return () unless $self->num_cust_svc(@_); + return [] unless $self->num_cust_svc(@_); my %opt = (); if ( @_ && $_[0] =~ /^\d+/ ) { |