Skip to content

Commit 765c39f

Browse files
tmotyledannenberg
authored andcommitted
[bug-OpenMage#916] Non-numeric value warning in Mage_Reports_Model_Totals
refs: OpenMage#915
1 parent c9f2985 commit 765c39f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/core/Mage/Reports/Model/Totals.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function countTotals($grid, $from, $to)
4545
{
4646
$columns = array();
4747
foreach ($grid->getColumns() as $col) {
48+
if ($col->getTotal() === null) {
49+
continue;
50+
}
4851
$columns[$col->getIndex()] = array("total" => $col->getTotal(), "value" => 0);
4952
}
5053

0 commit comments

Comments
 (0)