This commit is contained in:
xdrm-brackets 2017-10-13 19:30:24 +02:00
parent 22c59b7a1d
commit dad2125544
1 changed files with 3 additions and 2 deletions

View File

@ -136,11 +136,12 @@
/* (2) Calcl the total to add */
$total = 0;
foreach($data as $entry){
// Only if positive numeric
if( is_numeric($entry) && $entry > 0 )
$total += intval($entry);
if( isset($entry[0]) && is_numeric($entry[0]) && $entry[0] > 0 )
$total += intval($entry[0]);
$count++;
}