Skip to content

Commit f968bda

Browse files
committed
fix empty else
1 parent 19ecf09 commit f968bda

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
@@ -2700,14 +2700,12 @@ static zval *to_zval_array(zval *ret, encodeTypePtr type, xmlNodePtr data)
27002700
soap_error0(E_ERROR, "Encoding: array index out of range");
27012701
}
27022702
pos[i]++;
2703-
if (pos[i] >= dims[i]) {
2704-
if (i > 0) {
2705-
pos[i] = 0;
2706-
} else {
2707-
}
2708-
} else {
2703+
if (pos[i] < dims[i]) {
27092704
break;
27102705
}
2706+
if (i > 0) {
2707+
pos[i] = 0;
2708+
}
27112709
}
27122710
}
27132711
trav = trav->next;

0 commit comments

Comments
 (0)