Skip to content

Commit c575ab0

Browse files
committed
- Move checking
1 parent 345f6d9 commit c575ab0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/simplexml/simplexml.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1269,9 +1269,9 @@ SXE_METHOD(xpath)
12691269
}
12701270
if (!sxe->node) {
12711271
php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, xmlDocGetRootElement((xmlDocPtr) sxe->document->ptr), NULL TSRMLS_CC);
1272-
}
1273-
if (!sxe->node) {
1274-
RETURN_FALSE;
1272+
if (!sxe->node) {
1273+
RETURN_FALSE;
1274+
}
12751275
}
12761276

12771277
nodeptr = php_sxe_get_first_node(sxe, sxe->node->node TSRMLS_CC);

0 commit comments

Comments
 (0)