Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wiaflos
wiaflos
Commits
2918ef2c
Commit
2918ef2c
authored
Jan 31, 2020
by
Nigel Kukard
Browse files
Fixed undef errors
parent
2f80cd68
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiaflos/server/core/Reporting.pm
View file @
2918ef2c
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment