[-] FO: Fix #PSCFV-4992

This commit is contained in:
rGaillard
2012-10-16 09:58:54 +00:00
parent 78f557c29f
commit a0422e94de
3 changed files with 16 additions and 11 deletions

View File

@@ -496,7 +496,8 @@ class AddressFormatCore extends ObjectModel
$reflect = new ReflectionObject($address);
$public_properties = $reflect->getProperties(ReflectionProperty::IS_PUBLIC);
foreach ($public_properties as $property)
$layoutData['object'][$property->getName()] = $address->{$property->getName()};
if (isset($address->{$property->getName()}))
$layoutData['object'][$property->getName()] = $address->{$property->getName()};
}
return $layoutData;
}