FIX check if numeric value

This commit is contained in:
Regis Houssin 2021-10-13 14:26:43 +02:00
parent ce37323f69
commit f14de50bd7

View File

@ -519,8 +519,10 @@ function getNumberInvoicesPieChart($mode)
$i++;
}
if (!empty($dataseries[0])) {
foreach ($dataseries[0] as $key=>$value) {
$total += $value;
foreach ($dataseries[0] as $key => $value) {
if (is_numeric($value)) {
$total += $value;
}
}
}
$legend = array(