We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31a5ab0 commit b4e047fCopy full SHA for b4e047f
1 file changed
Classes/PHPExcel/Reader/Excel2007.php
@@ -1688,7 +1688,7 @@ public function load($pFilename)
1688
1689
if ((!$this->readDataOnly) || (!empty($this->loadSheetsOnly))) {
1690
// active sheet index
1691
- $activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"]); // refers to old sheet index
+ $activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"] ?? 0); // refers to old sheet index
1692
1693
// keep active sheet index if sheet is still loaded, else first sheet is set as the active
1694
if (isset($mapSheetId[$activeTab]) && $mapSheetId[$activeTab] !== null) {
0 commit comments