Improve conditional of loop

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-01-25 22:33:43 +01:00
parent b9bbb894f8
commit c314eb74a9
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 2 additions and 1 deletions

View File

@ -407,7 +407,8 @@ class Factory implements IFactory {
$body .= ';';
$res = '';
$p = 0;
for($i = 0; $i < strlen($body); $i++) {
$length = strlen($body);
for($i = 0; $i < $length; $i++) {
$ch = $body[$i];
switch ( $ch ) {
case '?':