diff --git a/xlsxwriter.class.php b/xlsxwriter.class.php index a987735f8..3e33b3ca9 100644 --- a/xlsxwriter.class.php +++ b/xlsxwriter.class.php @@ -663,10 +663,11 @@ protected function buildWorkbookXML() } $workbook_xml.=''; $workbook_xml.=''; + $i=0; foreach($this->sheets as $sheet_name=>$sheet) { if ($sheet->auto_filter) { $sheetname = self::sanitize_sheetname($sheet->sheetname); - $workbook_xml.=''; + $workbook_xml.=''; $i++; } }