]> granicus.if.org Git - php/commitdiff
Fixed incorrect error message
authorGeorge Peter Banyard <girgias@php.net>
Wed, 30 Sep 2020 05:37:16 +0000 (08:37 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 30 Sep 2020 05:37:16 +0000 (08:37 +0300)
ext/soap/php_schema.c

index edfe694021043984c8da779bf4d1e84f85cbc46f..3eb66a5c03bb62d5c701ebf4a4d1a3ceea2a6606 100644 (file)
@@ -1614,8 +1614,6 @@ static int schema_element(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTyp
        attr = get_attribute(attrs, "default");
        if (attr) {
                if (ref != NULL) {
-                       soap_error0(E_ERROR, "Parsing Schema: element has both 'ref' and 'fixed' attributes");
-               } else if (ref != NULL) {
                        soap_error0(E_ERROR, "Parsing Schema: element has both 'default' and 'fixed' attributes");
                }
                cur_type->def = estrdup((char*)attr->children->content);