diff --git a/app/code/core/Mage/Adminhtml/Block/Report/Grid.php b/app/code/core/Mage/Adminhtml/Block/Report/Grid.php index 35002fdcdaf..15909037915 100644 --- a/app/code/core/Mage/Adminhtml/Block/Report/Grid.php +++ b/app/code/core/Mage/Adminhtml/Block/Report/Grid.php @@ -409,10 +409,10 @@ public function addGrandTotals($total) } } /* - * recalc totals if we have average + * recalculate totals if we have average */ foreach ($this->getColumns() as $key => $_column) { - if (str_contains($_column->getTotal(), '/')) { + if ($_column->hasTotal() && str_contains($_column->getTotal(), '/')) { list($t1, $t2) = explode('/', $_column->getTotal()); if ($this->getGrandTotals()->getData($t2) != 0) { $this->getGrandTotals()->setData(