diff --git a/classes/webservice/WebserviceRequest.php b/classes/webservice/WebserviceRequest.php index d079a1535..74fb8a0b3 100644 --- a/classes/webservice/WebserviceRequest.php +++ b/classes/webservice/WebserviceRequest.php @@ -1457,8 +1457,9 @@ class WebserviceRequestCore if (isset($fieldProperties['i18n']) && $fieldProperties['i18n']) { $i18n = true; - foreach ($attributes->$fieldName->language as $lang) - $object->{$fieldName}[(int)$lang->attributes()->id] = (string)$lang; + if (isset($attributes->$fieldName, $attributes->$fieldName->language)) + foreach ($attributes->$fieldName->language as $lang) + $object->{$fieldName}[(int)$lang->attributes()->id] = (string)$lang; } }