summaryrefslogtreecommitdiffstats
path: root/lib/private/L10N
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-25 22:33:43 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-25 22:33:43 +0100
commitc314eb74a955e7a4f632cb80ff3ec77aa3636bbc (patch)
tree02c1012c1e9e3227e85e2d47c03fe58b12c4f486 /lib/private/L10N
parentb9bbb894f8b01e000bb5e3a8a82db7bebad3ea00 (diff)
downloadnextcloud-server-c314eb74a955e7a4f632cb80ff3ec77aa3636bbc.tar.gz
nextcloud-server-c314eb74a955e7a4f632cb80ff3ec77aa3636bbc.zip
Improve conditional of loop
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/L10N')
-rw-r--r--lib/private/L10N/Factory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php
index 8268be05d4b..a7ffb401b7b 100644
--- a/lib/private/L10N/Factory.php
+++ b/lib/private/L10N/Factory.php
@@ -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 '?':