From 563139ea5f89734dec6f5289cb1be84c949a2b9f Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Sat, 11 Nov 2017 12:27:21 +0100 Subject: [PATCH] Fix isEmptyRow() check --- src/Spout/Reader/XLSX/RowIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spout/Reader/XLSX/RowIterator.php b/src/Spout/Reader/XLSX/RowIterator.php index a33fd41..b411758 100644 --- a/src/Spout/Reader/XLSX/RowIterator.php +++ b/src/Spout/Reader/XLSX/RowIterator.php @@ -340,7 +340,7 @@ class RowIterator implements IteratorInterface */ protected function isEmptyRow($rowData) { - return (count($rowData) === 1 && key($rowData) === ''); + return (count($rowData) === 1 && reset($rowData) === ''); } /**