[-] FO: Fix #PSCFV-4992

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17872 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-16 09:58:54 +00:00
parent 4d2a15d74a
commit e03dd8c158
3 changed files with 16 additions and 11 deletions
+2 -1
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;
}