From 5e490f8530b8d0ce1faa38583fa14eb9a2aaf584 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 24 Jun 2012 19:43:26 +0200 Subject: [PATCH] Fix: Remove warning --- htdocs/admin/workflow.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/workflow.php b/htdocs/admin/workflow.php index 2132a059926..c7940bb5450 100755 --- a/htdocs/admin/workflow.php +++ b/htdocs/admin/workflow.php @@ -87,14 +87,14 @@ $workflow=array( //, '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) { if ($conf->$child->enabled) { $langs->Load($child.'@'.$child); - + foreach($parents as $parent => $actions) { if ($conf->$parent->enabled)