[-] INSTALLER : Prevent crash when populating data, MACOSX OS creates hidden files
This commit is contained in:
1 parent
2590465a7c
commit
dd2d7491b4
1 file changed
+4
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user