From: Ivan Kohler Date: Mon, 9 Jun 2014 18:10:20 +0000 (-0700) Subject: fix cust_svc_unsorted when there are no services, RT#27267 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b58f35d5de926f2f9187e9c5052ef70f0e652124 fix cust_svc_unsorted when there are no services, RT#27267 --- 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+/ ) {