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)) {