From d3338477cffe63da1395721f91e8928fda34afd6 Mon Sep 17 00:00:00 2001 From: jeff Date: Wed, 30 Dec 2009 02:27:18 +0000 Subject: [PATCH] noise reduction --- FS/FS/cust_main.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index daced7b49..c5e5ba0e6 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2069,7 +2069,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') ) { -- 2.20.1