Avoid null values for XML elements
This commit is contained in:
parent
beeef31d91
commit
c4a5a09205
|
@ -78,7 +78,7 @@ class Response {
|
||||||
* @param string $nodeName The name of appending node.
|
* @param string $nodeName The name of appending node.
|
||||||
* @param string $value The content of appending node.
|
* @param string $value The content of appending node.
|
||||||
*/
|
*/
|
||||||
public function addToVerbNode($nodeName, $value = null) {
|
public function addToVerbNode($nodeName, $value = '') {
|
||||||
if (!isset($this->verbNode) && !empty($this->verb)) {
|
if (!isset($this->verbNode) && !empty($this->verb)) {
|
||||||
$this->verbNode = $this->addChild($this->doc->documentElement, $this->verb);
|
$this->verbNode = $this->addChild($this->doc->documentElement, $this->verb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue