Commit 1d831d47 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'nkupdates' into 'master'

Fixed undef errors

See merge request !52
parents 7f1633b5 2918ef2c
Pipeline #5181 passed with stages
in 3 minutes and 28 seconds
...@@ -652,7 +652,7 @@ sub sendReport ...@@ -652,7 +652,7 @@ sub sendReport
# Check what type we are # Check what type we are
if (lc($type) eq "float") { if (lc($type) eq "float") {
$variables{$item}{'type'} = "float"; $variables{$item}{'type'} = "float";
$variables{$item}{'value'} = new Math::BigFloat(); $variables{$item}{'value'} = new Math::BigFloat(0);
$variables{$item}{'value'}->precision(-2); $variables{$item}{'value'}->precision(-2);
} }
# We shouldn't return results # We shouldn't return results
...@@ -775,7 +775,7 @@ sub sendReport ...@@ -775,7 +775,7 @@ sub sendReport
my $suffix = ""; my $suffix = "";
# Pull in value # Pull in value
my $amount = new Math::BigFloat(); my $amount = new Math::BigFloat(0);
$amount->precision(-2); $amount->precision(-2);
$amount->badd($pamount); $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