summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index 4659039d27..1b0756e4d8 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -358,8 +358,9 @@ static int schema_restriction_simpleContent(sdlPtr *sdl, xmlAttrPtr tsn, xmlNode
xmlAttrPtr base;
base = get_attribute(restType->properties, "base");
- if (base != NULL)
+ if (base != NULL) {
cur_type->encode = get_encoder_from_prefix((*sdl), restType, base->children->content);
+ }
content = get_node(restType->children, "simpleType");
if (content != NULL) {