Skip to content

Commit b4e047f

Browse files
authored
Update Excel2007.php
1 parent 31a5ab0 commit b4e047f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/PHPExcel/Reader/Excel2007.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ public function load($pFilename)
16881688

16891689
if ((!$this->readDataOnly) || (!empty($this->loadSheetsOnly))) {
16901690
// active sheet index
1691-
$activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"]); // refers to old sheet index
1691+
$activeTab = intval($xmlWorkbook->bookViews->workbookView["activeTab"] ?? 0); // refers to old sheet index
16921692

16931693
// keep active sheet index if sheet is still loaded, else first sheet is set as the active
16941694
if (isset($mapSheetId[$activeTab]) && $mapSheetId[$activeTab] !== null) {

0 commit comments

Comments
 (0)