From b58f35d5de926f2f9187e9c5052ef70f0e652124 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 9 Jun 2014 11:10:20 -0700 Subject: [PATCH] fix cust_svc_unsorted when there are no services, RT#27267 --- FS/FS/cust_pkg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index cabecd6bb..bf423cd77 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+/ ) { -- 2.11.0