[freeside-commits] freeside/FS/FS cust_pkg.pm,1.109,1.110
Ivan,,,
ivan at wavetail.420.am
Sun Jan 25 17:07:21 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv20313
Modified Files:
cust_pkg.pm
Log Message:
fix harmless warning, RT#4681: Argument "" isn't numeric in numeric eq (==) at /usr/local/share/perl/5.8.8/FS/cust_pkg.pm line 443.
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- cust_pkg.pm 18 Jan 2009 23:51:49 -0000 1.109
+++ cust_pkg.pm 26 Jan 2009 01:07:19 -0000 1.110
@@ -440,7 +440,9 @@
sub check {
my $self = shift;
- $self->locationnum('') if $self->locationnum == 0 || $self->locationnum == -1;
+ $self->locationnum('')
+ if defined($self->locationnum) && length($self->locationnum)
+ && ( $self->locationnum == 0 || $self->locationnum == -1 );
my $error =
$self->ut_numbern('pkgnum')
More information about the freeside-commits
mailing list