We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69c0374 + fb9be64 commit 63b82fcCopy full SHA for 63b82fc
1 file changed
src/AfriCC/EPP/Frame/Response.php
@@ -84,11 +84,11 @@ public function data()
84
{
85
$nodes = $this->get('//epp:epp/epp:response/epp:resData');
86
if ($nodes === false || !($nodes instanceof DOMNodeList) || $nodes->length === 0 || !$nodes->item(0)->hasChildNodes()) {
87
- return;
+ $data = [];
88
+ } else {
89
+ $data = $this->nodeToArray($nodes->item(0));
90
}
91
- $data = $this->nodeToArray($nodes->item(0));
-
92
// check for extension data
93
$nodes = $this->get('//epp:epp/epp:response/epp:extension');
94
if ($nodes !== false && $nodes instanceof DOMNodeList && $nodes->length > 0 && $nodes->item(0)->hasChildNodes()) {
0 commit comments