Skip to content

Commit

Permalink
fixes PHPOffice#1655 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyabin committed Sep 22, 2020
1 parent 9683e5b commit 3f50326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Reader/Xlsx/Hyperlinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private function setHyperlink(SimpleXMLElement $hyperlink, Worksheet $worksheet)
foreach (Coordinate::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
$cell = $worksheet->getCell($cellReference);
if (isset($linkRel['id'])) {
$hyperlinkUrl = $this->hyperlinks[(string) $linkRel['id']];
$hyperlinkUrl = $this->hyperlinks[(string) $linkRel['id']] ?? null;
if (isset($hyperlink['location'])) {
$hyperlinkUrl .= '#' . (string) $hyperlink['location'];
}
Expand Down

0 comments on commit 3f50326

Please sign in to comment.