diff options
author | sgiehl <stefan@piwik.org> | 2015-07-08 22:51:31 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-07-08 22:51:37 +0300 |
commit | cee467e61e70913d32d438d70df0384f4e803cc3 (patch) | |
tree | 44b89dc87424a5a2266865e0008cb3f52e409839 /plugins/LanguagesManager | |
parent | 4bb1936baf08825632328969367bcd8e6ea97d88 (diff) |
small code improvement
Diffstat (limited to 'plugins/LanguagesManager')
-rw-r--r-- | plugins/LanguagesManager/Commands/CreatePull.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/LanguagesManager/Commands/CreatePull.php b/plugins/LanguagesManager/Commands/CreatePull.php index 4436a4ba38..95a57e591f 100644 --- a/plugins/LanguagesManager/Commands/CreatePull.php +++ b/plugins/LanguagesManager/Commands/CreatePull.php @@ -121,7 +121,8 @@ class CreatePull extends TranslationBase } $linesSumByLang = array(); - for($i=0; $i<count($lineChanges[0]); $i++) { + $lineChangesCount = count($lineChanges[0]); + for ($i = 0; $i < $lineChangesCount; $i++) { @$linesSumByLang[$lineChanges[3][$i]] += $lineChanges[1][$i]; } |