function updateTotals() { parent::updateTotals(); foreach ($this->current_row as $key => $val) { if (!empty($this->totals_title_field) and $key == $this->totals_title_field) { $this->totals[$key] = $this->totals_title; } } }