Skip to content

Commit

Permalink
Merge pull request #4 from omcrn/fix-hyperlinks
Browse files Browse the repository at this point in the history
added  check
  • Loading branch information
zura2 authored Jul 15, 2019
2 parents 0328f60 + b1b015c commit 069ef7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Reader/Excel2007.php
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ public function load($pFilename)

foreach (PHPExcel_Cell::extractAllCellReferencesInRange($hyperlink['ref']) as $cellReference) {
$cell = $docSheet->getCell($cellReference);
if (isset($linkRel['id'])) {
if ($hyperlinks && isset($linkRel['id'])) {
$hyperlinkUrl = $hyperlinks[ (string)$linkRel['id'] ];
if (isset($hyperlink['location'])) {
$hyperlinkUrl .= '#' . (string) $hyperlink['location'];
Expand Down

0 comments on commit 069ef7c

Please sign in to comment.