[freeside-commits] freeside/FS/FS svc_acct.pm,1.256,1.257
Ivan,,,
ivan at wavetail.420.am
Sun May 3 18:17:26 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv2769
Modified Files:
svc_acct.pm
Log Message:
eliminate Argument "" isn't numeric in addition (+) warning
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.256
retrieving revision 1.257
diff -u -d -r1.256 -r1.257
--- svc_acct.pm 7 Apr 2009 18:20:43 -0000 1.256
+++ svc_acct.pm 4 May 2009 01:17:24 -0000 1.257
@@ -1711,7 +1711,7 @@
$self->$column - $amount <= 0;
},
'+' => sub { my($self, $column, $amount) = @_;
- $self->$column + $amount > 0;
+ ($self->$column || 0) + $amount > 0;
},
);
my %op2warncondition = (
@@ -1720,7 +1720,7 @@
$self->$column - $amount <= $self->$threshold + 0;
},
'+' => sub { my($self, $column, $amount) = @_;
- $self->$column + $amount > 0;
+ ($self->$column || 0) + $amount > 0;
},
);
More information about the freeside-commits
mailing list