Fix crash when using associative array with empty row (#354)
This commit is contained in:
1 parent
9ce77405e0
commit
e276b4378e
2 files changed
+3
-2
No files matched your search
@@ -149,7 +149,8 @@ EOD;
|
||||
private function isEmptyRow($dataRow)
|
||||
{
|
||||
$numCells = count($dataRow);
|
||||
return ($numCells === 1 && CellHelper::isEmpty($dataRow[0]));
|
||||
// using "reset()" instead of "$dataRow[0]" because $dataRow can be an associative array
|
||||
return ($numCells === 1 && CellHelper::isEmpty(reset($dataRow)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user