Merge pull request #348 from djfm/installer
[-] Installer : do not fail on warning when addons modules list empty
This commit is contained in:
@@ -592,8 +592,10 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
$addons_modules = array();
|
$addons_modules = array();
|
||||||
$content = Tools::addonsRequest('install-modules');
|
$content = Tools::addonsRequest('install-modules');
|
||||||
$xml = @simplexml_load_string($content, null, LIBXML_NOCDATA);
|
$xml = @simplexml_load_string($content, null, LIBXML_NOCDATA);
|
||||||
foreach ($xml->module as $modaddons)
|
|
||||||
$addons_modules[] = array('id_module' => $modaddons->id, 'name' => $modaddons->name);
|
if ($xml !== false and isset($xml->module))
|
||||||
|
foreach ($xml->module as $modaddons)
|
||||||
|
$addons_modules[] = array('id_module' => $modaddons->id, 'name' => $modaddons->name);
|
||||||
|
|
||||||
return $addons_modules;
|
return $addons_modules;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user