Need to support PHP5.3 for a client unfortunately

This commit is contained in:
Chris Graham committed 2015-03-22 22:58:33 +00:00
1 parent 6eef69634b
commit 31482fc622
7 files changed
+11 -10

No files matched your search

+2 -2
View File
@@ -185,7 +185,7 @@ class XLSX extends AbstractReader
}
$isInsideRowTag = false;
$rowData = [];
$rowData = array();
while ($this->xmlReader->read()) {
if ($this->xmlReader->nodeType == \XMLReader::ELEMENT && $this->xmlReader->name === 'dimension') {
@@ -230,7 +230,7 @@ class XLSX extends AbstractReader
}
// no data means "end of file"
return ($rowData !== []) ? $rowData : null;
return ($rowData !== array()) ? $rowData : null;
}
/**