php warning when  MAIN_MODULE_xxxxx_DIR exists but the module does not have a directory.
This commit is contained in:
dolibarr95 2017-09-25 09:01:47 +02:00 committed by GitHub
parent e3da4188e2
commit 6ee15f1c45

View File

@ -286,6 +286,8 @@ class Conf
if (! empty($this->modules_parts['dir'])) if (! empty($this->modules_parts['dir']))
{ {
foreach($this->modules_parts['dir'] as $module => $dirs) foreach($this->modules_parts['dir'] as $module => $dirs)
{
if (! empty($this->$module->enabled))
{ {
foreach($dirs as $type => $name) foreach($dirs as $type => $name)
{ {
@ -299,6 +301,7 @@ class Conf
} }
} }
} }
}
// For mycompany storage // For mycompany storage
$this->mycompany->dir_output=$rootfordata."/mycompany"; $this->mycompany->dir_output=$rootfordata."/mycompany";