From 5100e1112af612e6a21ffbb9d8053ab007fce4a0 Mon Sep 17 00:00:00 2001 From: Dave Umrysh Date: Thu, 2 Feb 2023 08:29:05 -0700 Subject: [PATCH] fix bug --- PHPExcel/Writer/Excel2007/Worksheet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPExcel/Writer/Excel2007/Worksheet.php b/PHPExcel/Writer/Excel2007/Worksheet.php index 663ddf6..ad7c0cf 100644 --- a/PHPExcel/Writer/Excel2007/Worksheet.php +++ b/PHPExcel/Writer/Excel2007/Worksheet.php @@ -765,7 +765,7 @@ class PHPExcel_Writer_Excel2007_Worksheet extends PHPExcel_Writer_Excel2007_Writ $objWriter->writeAttribute('ref', str_replace('$','',$range)); $columns = $pSheet->getAutoFilter()->getColumns(); - if (count($columns > 0)) { + if (count($columns) > 0) { foreach($columns as $columnID => $column) { $rules = $column->getRules(); if (count($rules > 0)) {