Fix 7470
php warning when MAIN_MODULE_xxxxx_DIR exists but the module does not have a directory.
This commit is contained in:
parent
e3da4188e2
commit
6ee15f1c45
@ -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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user