Skip to content
Snippets Groups Projects
Commit 6c20f0b4 authored by Klaas Eikelboom's avatar Klaas Eikelboom
Browse files

Prevent non-numeric value warning in the TotalFieldOutputHandler.

parent c8a86f40
No related branches found
No related tags found
No related merge requests found
# Version 1.43-dev (not yet released)
* Prevent non-numeric value warning in the TotalFieldOutputHandler.
* DateFieldOutput DateTime Option by !93
# Version 1.42
......
......@@ -22,7 +22,9 @@ class TotalFieldOutputHandler extends CalculationFieldOutputHandler {
}
$value = 0;
foreach($values as $v) {
$value = $value + $v;
if (is_numeric($v)) {
$value = $value + $v;
}
}
return $value;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment