added some isset checks

This commit is contained in:
Dave Umrysh 2023-05-03 10:23:03 -06:00
parent f09b95893a
commit 3a6d96eb3f

View File

@ -841,11 +841,11 @@ class TemplateProcessor
$this->zipClass->addFromString($this->getDocumentContentTypesName(), $this->tempDocumentContentTypes); $this->zipClass->addFromString($this->getDocumentContentTypesName(), $this->tempDocumentContentTypes);
if($this->_rels!="") if(isset($this->_rels) && $this->_rels!="")
{ {
$this->zipClass->addFromString('word/_rels/document.xml.rels', $this->_rels); $this->zipClass->addFromString('word/_rels/document.xml.rels', $this->_rels);
} }
if($this->_types!="") if(isset($this->_types) && $this->_types!="")
{ {
$this->zipClass->addFromString('[Content_Types].xml', $this->_types); $this->zipClass->addFromString('[Content_Types].xml', $this->_types);
} }