summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorjeff <jeff>2009-12-30 02:26:15 +0000
committerjeff <jeff>2009-12-30 02:26:15 +0000
commit9048d8cf03126a412bdaeed9383dad48bc6f03a3 (patch)
tree9584196abc3be9d1d2553b03c4cbc8c579e714f5 /FS
parentc27c62c2fe1c79811f389cc0d17c330157888d01 (diff)
noise reduction
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cust_main.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 329b461..de83625 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -2071,7 +2071,7 @@ sub _cust_pkg {
# This should be generalized to use config options to determine order.
sub sort_packages {
- my $locationsort = $a->locationnum <=> $b->locationnum;
+ my $locationsort = ( $a->locationnum || 0 ) <=> ( $b->locationnum || 0 );
return $locationsort if $locationsort;
if ( $a->get('cancel') xor $b->get('cancel') ) {