From 1cb21f8f44a098dbfcaa6f1adc695d60123b7acd Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 4 Apr 2021 17:53:48 +0200 Subject: [PATCH] bug fixes --- Models/SupplierAttributeType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }