summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-06-09 11:10:20 -0700
committerIvan Kohler <ivan@freeside.biz>2014-06-09 11:10:20 -0700
commitb58f35d5de926f2f9187e9c5052ef70f0e652124 (patch)
tree04f315ea53e1f9959d32bac0adf55815be49d7c6
parentfe3b73fe0445e6f233ff19125b6b66eb6016566b (diff)
fix cust_svc_unsorted when there are no services, RT#27267
-rw-r--r--FS/FS/cust_pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm
index cabecd6..bf423cd 100644
--- a/FS/FS/cust_pkg.pm
+++ b/FS/FS/cust_pkg.pm
@@ -2799,7 +2799,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+/ ) {