[-] INSTALLER : Prevent crash when populating data, MACOSX OS creates hidden files

This commit is contained in:
gRoussac
2013-05-23 14:49:07 +02:00
parent 2590465a7c
commit dd2d7491b4
+4 -1
View File
@@ -224,10 +224,13 @@ class InstallXmlLoader
return;
}
if (substr($entity, 0, 1) == '.' || substr($entity, 0, 1) == '_')
return;
$xml = $this->loadEntity($entity);
// Read list of fields
if (!$xml->fields)
if (!is_object($xml) || !$xml->fields)
throw new PrestashopInstallerException('List of fields not found for entity '.$entity);
if ($this->isMultilang($entity))