Fix: Remove warning

This commit is contained in:
Laurent Destailleur 2012-06-24 19:43:26 +02:00
parent a67f6cc732
commit 5e490f8530

View File

@ -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)