]> granicus.if.org Git - php/commitdiff
Fix warning (and possible problem)
authorMarcus Boerger <helly@php.net>
Tue, 20 Jan 2004 07:27:47 +0000 (07:27 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 20 Jan 2004 07:27:47 +0000 (07:27 +0000)
ext/dom/xpath.c

index 977407fea504efd33270c02c667c1ca112a7b302..76767fa1f7ef7d3534d41ac5a8a2d1efa374f3c6 100644 (file)
@@ -251,6 +251,8 @@ PHP_FUNCTION(dom_xpath_query)
                        child = php_dom_create_object(node, &ret, NULL, child, intern TSRMLS_CC);
                        add_next_index_zval(retval, child);
                }
+       } else {
+               RETURN_FALSE;
        }
 
        php_dom_create_interator(return_value, DOM_NODELIST TSRMLS_CC);