debug
This commit is contained in:
parent
22c59b7a1d
commit
dad2125544
|
@ -136,11 +136,12 @@
|
||||||
/* (2) Calcl the total to add */
|
/* (2) Calcl the total to add */
|
||||||
$total = 0;
|
$total = 0;
|
||||||
|
|
||||||
|
|
||||||
foreach($data as $entry){
|
foreach($data as $entry){
|
||||||
|
|
||||||
// Only if positive numeric
|
// Only if positive numeric
|
||||||
if( is_numeric($entry) && $entry > 0 )
|
if( isset($entry[0]) && is_numeric($entry[0]) && $entry[0] > 0 )
|
||||||
$total += intval($entry);
|
$total += intval($entry[0]);
|
||||||
|
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue