[-] WS : #PSCFV-2888 : Fix bug

This commit is contained in:
lLefevre committed 2012-06-20 13:13:57 +00:00
1 parent 0f3c771bd5
commit fa39945de3
1 file changed
+3 -2
+3 -2
View File
@@ -1457,8 +1457,9 @@ class WebserviceRequestCore
if (isset($fieldProperties['i18n']) && $fieldProperties['i18n']) if (isset($fieldProperties['i18n']) && $fieldProperties['i18n'])
{ {
$i18n = true; $i18n = true;
foreach ($attributes->$fieldName->language as $lang) if (isset($attributes->$fieldName, $attributes->$fieldName->language))
$object->{$fieldName}[(int)$lang->attributes()->id] = (string)$lang; foreach ($attributes->$fieldName->language as $lang)
$object->{$fieldName}[(int)$lang->attributes()->id] = (string)$lang;
} }
} }