diff --git a/SpreadsheetReader_XLSX.php b/SpreadsheetReader_XLSX.php index c5e9f2b..dafdc71 100644 --- a/SpreadsheetReader_XLSX.php +++ b/SpreadsheetReader_XLSX.php @@ -465,7 +465,7 @@ private function PrepareSharedStringCache() case 't': if ($this -> SharedStrings -> nodeType == XMLReader::END_ELEMENT) { - continue; + break; } $CacheValue .= $this -> SharedStrings -> readString(); break; @@ -590,7 +590,7 @@ private function GetSharedString($Index) case 't': if ($this -> SharedStrings -> nodeType == XMLReader::END_ELEMENT) { - continue; + break; } $Value .= $this -> SharedStrings -> readString(); break; @@ -1058,7 +1058,7 @@ public function next() // If it is a closing tag, skip it if ($this -> Worksheet -> nodeType == XMLReader::END_ELEMENT) { - continue; + break; } $StyleId = (int)$this -> Worksheet -> getAttribute('s'); @@ -1092,7 +1092,7 @@ public function next() case 'is': if ($this -> Worksheet -> nodeType == XMLReader::END_ELEMENT) { - continue; + break; } $Value = $this -> Worksheet -> readString();