Skip to content

Commit

Permalink
Fixed wrong operand precedence (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
plutonio21 authored and Nyholm committed Sep 5, 2018
1 parent 28fa783 commit 5955660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function extractToCatalogues(Finder $finder, array $catalogues, array $co
$result->set($key, $newTranslation, $domain);
// We do not want "translation" key stored anywhere.
$meta->removeAllInCategory('translation');
} elseif (null !== $newTranslation = $meta->getDesc() && $catalogue->getLocale() === $this->defaultLocale) {
} elseif (null !== ($newTranslation = $meta->getDesc()) && $catalogue->getLocale() === $this->defaultLocale) {
$result->set($key, $newTranslation, $domain);
}
}
Expand Down

0 comments on commit 5955660

Please sign in to comment.