Commit 2918ef2c authored by Nigel Kukard's avatar Nigel Kukard

Fixed undef errors

parent 2f80cd68
......@@ -652,7 +652,7 @@ sub sendReport
# Check what type we are
if (lc($type) eq "float") {
$variables{$item}{'type'} = "float";
$variables{$item}{'value'} = new Math::BigFloat();
$variables{$item}{'value'} = new Math::BigFloat(0);
$variables{$item}{'value'}->precision(-2);
}
# We shouldn't return results
......@@ -775,7 +775,7 @@ sub sendReport
my $suffix = "";
# Pull in value
my $amount = new Math::BigFloat();
my $amount = new Math::BigFloat(0);
$amount->precision(-2);
$amount->badd($pamount);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment