From 59556606d31c3fba62afe3c0d5da9af294f5d879 Mon Sep 17 00:00:00 2001 From: Tonio Carta Date: Wed, 5 Sep 2018 10:54:07 +0200 Subject: [PATCH] Fixed wrong operand precedence (#258) --- Service/Importer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Service/Importer.php b/Service/Importer.php index 1559dadc..29119b89 100644 --- a/Service/Importer.php +++ b/Service/Importer.php @@ -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); } }