[-] INSTALLER : Prevent crash when populating data, MACOSX OS creates hidden files
This commit is contained in:
1 parent
f0abc2298c
commit
66fbbf4825
1 file changed
+4
-1
@@ -224,10 +224,13 @@ class InstallXmlLoader
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (substr($entity, 0, 1) == '.' || substr($entity, 0, 1) == '_')
|
||||||
|
return;
|
||||||
|
|
||||||
$xml = $this->loadEntity($entity);
|
$xml = $this->loadEntity($entity);
|
||||||
|
|
||||||
// Read list of fields
|
// Read list of fields
|
||||||
if (!$xml->fields)
|
if (!is_object($xml) || !$xml->fields)
|
||||||
throw new PrestashopInstallerException('List of fields not found for entity '.$entity);
|
throw new PrestashopInstallerException('List of fields not found for entity '.$entity);
|
||||||
|
|
||||||
if ($this->isMultilang($entity))
|
if ($this->isMultilang($entity))
|
||||||
|
|||||||
Reference in new issue
Block a user