Skip to content

Commit

Permalink
Merge pull request #40 from akeneo/fix-mari
Browse files Browse the repository at this point in the history
Fix exported folders
  • Loading branch information
pierallard authored Feb 21, 2020
2 parents c916c07 + 861dcaa commit 3463602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Akeneo/Crowdin/TranslatedProgressSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function getApprovedCount($crowdinCode, $branch = null)
foreach ($xml->files->item as $mainNode) {
if ((null !== $branch) && ('branch' === (string) $mainNode->node_type) && ($branch === (string) $mainNode->name)) {
foreach ($mainNode->files->item as $mainDir) {
if (null === $this->folders || in_array((string) $mainDir->name, $this->folders)) {
if (null === $this->folders || [null] === $this->folders || in_array((string) $mainDir->name, $this->folders)) {
$approved += (int) $mainDir->approved;
}
}
Expand Down

0 comments on commit 3463602

Please sign in to comment.