Skip to content

Commit 2f750b9

Browse files
committed
Fix count($columns > 0) in Excel2007/Writer
1 parent ec0ffd3 commit 2f750b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/PHPExcel/Writer/Excel2007/Worksheet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ private function writeAutoFilter(PHPExcel_Shared_XMLWriter $objWriter = null, PH
768768
$objWriter->writeAttribute('ref', str_replace('$', '', $range));
769769

770770
$columns = $pSheet->getAutoFilter()->getColumns();
771-
if (count($columns > 0)) {
771+
if (count($columns) > 0) {
772772
foreach ($columns as $columnID => $column) {
773773
$rules = $column->getRules();
774774
if (count($rules) > 0) {

0 commit comments

Comments
 (0)