diff options
author | Felipe Pena <felipensp@gmail.com> | 2014-05-10 11:55:42 -0300 |
---|---|---|
committer | Felipe Pena <felipensp@gmail.com> | 2014-05-10 11:55:42 -0300 |
commit | c575ab0c8856906d184b10d607f7b06c27d4cd5f (patch) | |
tree | bf746c9ad28ea1627c45ae86680446baf6346197 | |
parent | 345f6d90d5947c5cf380db79c1c6366a72cc6e8d (diff) | |
download | php-git-c575ab0c8856906d184b10d607f7b06c27d4cd5f.tar.gz |
- Move checking
-rw-r--r-- | ext/simplexml/simplexml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 0f05f52c1c..16070fc92a 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1269,9 +1269,9 @@ SXE_METHOD(xpath) } if (!sxe->node) { php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement((xmlDocPtr) sxe->document->ptr), NULL TSRMLS_CC); - } - if (!sxe->node) { - RETURN_FALSE; + if (!sxe->node) { + RETURN_FALSE; + } } nodeptr = php_sxe_get_first_node(sxe, sxe->node->node TSRMLS_CC); |