Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #348 from djfm/installer

[-] Installer : do not fail on warning when addons modules list empty
  • Loading branch information...
commit e1f3f163bc13c47d0d541bb8e582a636c05906c2 2 parents 0211e83 + a209789
@vAugagneur vAugagneur authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 install-dev/models/install.php
View
6 install-dev/models/install.php
@@ -592,8 +592,10 @@ public function getAddonsModulesList()
$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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.