FIXED : #282 : problem converting docx to pdf
PHP Catchable fatal error: Argument 2 passed to DOMXPath::query() must be an instance of DOMNode, null given, called in /var/www/xxx/PhpWord/Reader/Word2007.php on line 145 and defined in /var/www/xxx/PhpWord/Shared/XMLReader.php on line 99, referer: XXX
This commit is contained in:
parent
5c8e100d41
commit
71b4ac9c56
|
|
@ -96,7 +96,11 @@ class XMLReader
|
|||
$this->xpath = new \DOMXpath($this->dom);
|
||||
}
|
||||
|
||||
return $this->xpath->query($path, $contextNode);
|
||||
if (is_null($contextNode)) {
|
||||
return $this->xpath->query($path);
|
||||
} else {
|
||||
return $this->xpath->query($path, $contextNode);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue