Skip to content

Commit a051233

Browse files
committed
fix empty else
1 parent 3b0a352 commit a051233

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

ext/soap/php_encoding.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,14 +2713,12 @@ static zval *to_zval_array(zval *ret, encodeTypePtr type, xmlNodePtr data)
27132713
soap_error0(E_ERROR, "Encoding: array index out of range");
27142714
}
27152715
pos[i]++;
2716-
if (pos[i] >= dims[i]) {
2717-
if (i > 0) {
2718-
pos[i] = 0;
2719-
} else {
2720-
}
2721-
} else {
2716+
if (pos[i] < dims[i]) {
27222717
break;
27232718
}
2719+
if (i > 0) {
2720+
pos[i] = 0;
2721+
}
27242722
}
27252723
}
27262724
trav = trav->next;

0 commit comments

Comments
 (0)