Merge pull request #8055 from nextcloud/improve-loop
Improve conditional of loop
This commit is contained in:
commit
e97165e0b5
|
@ -407,7 +407,8 @@ class Factory implements IFactory {
|
||||||
$body .= ';';
|
$body .= ';';
|
||||||
$res = '';
|
$res = '';
|
||||||
$p = 0;
|
$p = 0;
|
||||||
for($i = 0; $i < strlen($body); $i++) {
|
$length = strlen($body);
|
||||||
|
for($i = 0; $i < $length; $i++) {
|
||||||
$ch = $body[$i];
|
$ch = $body[$i];
|
||||||
switch ( $ch ) {
|
switch ( $ch ) {
|
||||||
case '?':
|
case '?':
|
||||||
|
|
Loading…
Reference in New Issue