diff --git a/Models/SupplierAttributeType.php b/Models/SupplierAttributeType.php index 9eb69fa..2538b56 100755 --- a/Models/SupplierAttributeType.php +++ b/Models/SupplierAttributeType.php @@ -115,12 +115,12 @@ class SupplierAttributeType implements \JsonSerializable, ArrayableInterface { if ($l11n instanceof SupplierAttributeTypeL11n) { $this->l11n = $l11n; - } elseif ($this->l11n instanceof SupplierAttributeTypeL11n && \is_string($l11n)) { - $this->l11n->title = $l11n; } elseif (\is_string($l11n)) { $this->l11n = new SupplierAttributeTypeL11n(); $this->l11n->title = $l11n; $this->l11n->setLanguage($lang); + } elseif ($this->l11n instanceof SupplierAttributeTypeL11n && \is_string($l11n)) { + $this->l11n->title = $l11n; } }