Resolve problem with incorrectly defined hyperlinks
This commit is contained in:
parent
916b6888eb
commit
2c927b1ca5
|
@ -41,7 +41,7 @@ class Hyperlinks
|
||||||
foreach (Coordinate::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
|
foreach (Coordinate::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
|
||||||
$cell = $worksheet->getCell($cellReference);
|
$cell = $worksheet->getCell($cellReference);
|
||||||
if (isset($linkRel['id'])) {
|
if (isset($linkRel['id'])) {
|
||||||
$hyperlinkUrl = $this->hyperlinks[(string) $linkRel['id']];
|
$hyperlinkUrl = $this->hyperlinks[(string) $linkRel['id']] ?? null;
|
||||||
if (isset($hyperlink['location'])) {
|
if (isset($hyperlink['location'])) {
|
||||||
$hyperlinkUrl .= '#' . (string) $hyperlink['location'];
|
$hyperlinkUrl .= '#' . (string) $hyperlink['location'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue