[freeside-commits] freeside/FS/FS svc_phone.pm,1.38,1.39
Erik Levinson
levinse at wavetail.420.am
Wed Jun 22 11:32:23 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv25824/FS/FS
Modified Files:
svc_phone.pm
Log Message:
improve performance of DID provisioning status report, RT10988
Index: svc_phone.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_phone.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -w -d -r1.38 -r1.39
--- svc_phone.pm 21 Jun 2011 22:41:43 -0000 1.38
+++ svc_phone.pm 22 Jun 2011 18:32:21 -0000 1.39
@@ -706,8 +706,8 @@
my @orwhere = map " $_ = '$number' ", @fields;
push @orwhere, map " $_ = '$prefix$number' ", @fields
- if length($prefix);
- if ( $prefix =~ /^\+(\d+)$/ ) {
+ if defined($prefix) && length($prefix);
+ if ( $prefix && $prefix =~ /^\+(\d+)$/ ) {
push @orwhere, map " $_ = '$1$number' ", @fields
}
More information about the freeside-commits
mailing list