[Translation][Xliff loader] fixed check target node.
This commit is contained in:
parent
4353134903
commit
09e88dc676
@ -63,7 +63,7 @@ class XliffFileLoader implements LoaderInterface
|
||||
if ($notes = $this->parseNotesMetadata($translation->note, $encoding)) {
|
||||
$metadata['notes'] = $notes;
|
||||
}
|
||||
if ($translation->target->attributes()) {
|
||||
if (isset($translation->target) && $translation->target->attributes()) {
|
||||
$metadata['target-attributes'] = $translation->target->attributes();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user