diff --git a/install-dev/models/install.php b/install-dev/models/install.php index dd268f93f..4afc63869 100644 --- a/install-dev/models/install.php +++ b/install-dev/models/install.php @@ -592,8 +592,10 @@ class InstallModelInstall extends InstallAbstractModel $addons_modules = array(); $content = Tools::addonsRequest('install-modules'); $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; }