From 289dd19a60a4e4d5314c5a1242dac820ca4555a8 Mon Sep 17 00:00:00 2001 From: djfm Date: Tue, 26 Mar 2013 09:42:48 +0100 Subject: [PATCH] [-] Installer : do not fail on warning when addons modules list empty --- install-dev/models/install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }