From f09b95893afa8278e28fc9f85f562558fabf8af9 Mon Sep 17 00:00:00 2001 From: Dave Umrysh Date: Thu, 6 Apr 2023 13:24:55 -0600 Subject: [PATCH] fix warning about missing key --- vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php b/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php index 8461a52..611fcc3 100755 --- a/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php +++ b/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php @@ -1330,7 +1330,7 @@ class TemplateProcessor - if($this->_rels=="") + if(!isset($this->_rels) || (isset($this->_rels) && $this->_rels=="")) { $this->_rels=$this->zipClass->getFromName('word/_rels/document.xml.rels'); $this->_types=$this->zipClass->getFromName('[Content_Types].xml');