Fix: Remove warning
This commit is contained in:
parent
a67f6cc732
commit
5e490f8530
@ -87,14 +87,14 @@ $workflow=array(
|
|||||||
//, 'propal' => array('WORKFLOW_PROPAL_AUTOCREATE_INVOICE')
|
//, 'propal' => array('WORKFLOW_PROPAL_AUTOCREATE_INVOICE')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$workflow = array_merge($workflow, $conf->modules_parts['workflow']);
|
if (! empty($conf->modules_parts['workflow']) && is_array($conf->modules_parts['workflow'])) $workflow = array_merge($workflow, $conf->modules_parts['workflow']);
|
||||||
|
|
||||||
foreach($workflow as $child => $parents)
|
foreach($workflow as $child => $parents)
|
||||||
{
|
{
|
||||||
if ($conf->$child->enabled)
|
if ($conf->$child->enabled)
|
||||||
{
|
{
|
||||||
$langs->Load($child.'@'.$child);
|
$langs->Load($child.'@'.$child);
|
||||||
|
|
||||||
foreach($parents as $parent => $actions)
|
foreach($parents as $parent => $actions)
|
||||||
{
|
{
|
||||||
if ($conf->$parent->enabled)
|
if ($conf->$parent->enabled)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user