From b1b015c3796b38b27d686dd69faf375fa2a2917f Mon Sep 17 00:00:00 2001 From: zura2 Date: Mon, 15 Jul 2019 11:44:23 +0400 Subject: [PATCH] added check --- Classes/PHPExcel/Reader/Excel2007.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Reader/Excel2007.php b/Classes/PHPExcel/Reader/Excel2007.php index e8a3bce1f..f4b50f03f 100644 --- a/Classes/PHPExcel/Reader/Excel2007.php +++ b/Classes/PHPExcel/Reader/Excel2007.php @@ -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'];