mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-11 18:46:49 +00:00
Update Spreadsheet.php
This commit is contained in:
@@ -663,7 +663,7 @@ class Spreadsheet implements JsonSerializable
|
||||
$worksheetCount = count($this->workSheetCollection);
|
||||
$trimWorksheetName = trim($worksheetName, "'");
|
||||
|
||||
for ($i = 0; $i < $wroksheetCount; ++$i) {
|
||||
for ($i = 0; $i < $worksheetCount; ++$i) {
|
||||
if (strcasecmp($this->workSheetCollection[$i]->getTitle(), $trimWorksheetName) === 0) {
|
||||
return $this->workSheetCollection[$i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user