// Fixed potential warning

This commit is contained in:
Damien Metzger committed 2013-11-28 14:29:40 +01:00
1 parent cb9d00352f
commit 35fc864e0b
1 file changed
+1 -1
+1 -1
View File
@@ -627,7 +627,7 @@ class AdminModulesControllerCore extends AdminController
{ {
$file = $f['file']; $file = $f['file'];
$content = Tools::file_get_contents(_PS_ROOT_DIR_.$file); $content = Tools::file_get_contents(_PS_ROOT_DIR_.$file);
$xml = @simplexml_load_string($content, null, LIBXML_NOCDATA); if ($xml = @simplexml_load_string($content, null, LIBXML_NOCDATA))
foreach ($xml->module as $modaddons) foreach ($xml->module as $modaddons)
if ($name == $modaddons->name && isset($modaddons->id) && ($this->logged_on_addons || $f['loggedOnAddons'] == 0)) if ($name == $modaddons->name && isset($modaddons->id) && ($this->logged_on_addons || $f['loggedOnAddons'] == 0))
{ {