added some isset checks
This commit is contained in:
parent
f09b95893a
commit
3a6d96eb3f
@ -841,11 +841,11 @@ class TemplateProcessor
|
||||
|
||||
$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);
|
||||
}
|
||||
if($this->_types!="")
|
||||
if(isset($this->_types) && $this->_types!="")
|
||||
{
|
||||
$this->zipClass->addFromString('[Content_Types].xml', $this->_types);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user